aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-08-23 09:17:10 +0000
committerThierry Vignaud <tv@mandriva.org>2006-08-23 09:17:10 +0000
commitd64d0038173224a68f6c872c431fc7be9bcd3dc8 (patch)
tree82124c62b62c8a2dd26ef3649abe115f28508ab7
parentad12994a8bf5dc26f98301058bdee796d60d1377 (diff)
downloadrpmdrake-d64d0038173224a68f6c872c431fc7be9bcd3dc8.tar
rpmdrake-d64d0038173224a68f6c872c431fc7be9bcd3dc8.tar.gz
rpmdrake-d64d0038173224a68f6c872c431fc7be9bcd3dc8.tar.bz2
rpmdrake-d64d0038173224a68f6c872c431fc7be9bcd3dc8.tar.xz
rpmdrake-d64d0038173224a68f6c872c431fc7be9bcd3dc8.zip
(run_treeview_dialog) use new Gtk2::MDV::CellRendererPixWithLabel() to nicely
display the package groups list
-rwxr-xr-xrpmdrake5
1 files changed, 2 insertions, 3 deletions
diff --git a/rpmdrake b/rpmdrake
index d3358c96..565754ab 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -962,13 +962,12 @@ or you already installed all of them."));
$pkgs->{$_}{selected} = 0 foreach keys %$pkgs;
}
- $tree_model = Gtk2::TreeStore->new("Glib::String", "Glib::String");
+ $tree_model = Gtk2::TreeStore->new("Glib::String", "Glib::String", "Gtk2::Gdk::Pixbuf");
$tree_model->set_sort_column_id(0, 'ascending');
$tree = Gtk2::TreeView->new_with_model($tree_model);
$tree->get_selection->set_mode('browse');
- $tree->append_column(my $textcolumn = Gtk2::TreeViewColumn->new_with_attributes(undef, Gtk2::CellRendererText->new, 'text' => 0));
-
+ $tree->append_column(my $textcolumn = Gtk2::TreeViewColumn->new_with_attributes(undef, Gtk2::MDV::CellRendererPixWithLabel->new, 'pixbuf' => 2, label => 0));
$tree->append_column(Gtk2::TreeViewColumn->new_with_attributes(undef, Gtk2::CellRendererText->new, 'text' => 1));
$tree->set_headers_visible(0);
$tree->set_rules_hint(1);