diff options
author | Thierry Vignaud <tv@mandriva.org> | 2006-08-23 09:17:10 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2006-08-23 09:17:10 +0000 |
commit | d64d0038173224a68f6c872c431fc7be9bcd3dc8 (patch) | |
tree | 82124c62b62c8a2dd26ef3649abe115f28508ab7 | |
parent | ad12994a8bf5dc26f98301058bdee796d60d1377 (diff) | |
download | rpmdrake-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-x | rpmdrake | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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); |