diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-25 02:06:23 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-12-05 14:16:07 +0100 |
commit | 796734b3e5aa363b1ec6e77738cb42b85c18f3cb (patch) | |
tree | a930df01ed23726675ef8e6c817a2d96a4074901 | |
parent | aafcc4901395cdcb72a508b03989dd2a62bfbab5 (diff) | |
download | rpmdrake-796734b3e5aa363b1ec6e77738cb42b85c18f3cb.tar rpmdrake-796734b3e5aa363b1ec6e77738cb42b85c18f3cb.tar.gz rpmdrake-796734b3e5aa363b1ec6e77738cb42b85c18f3cb.tar.bz2 rpmdrake-796734b3e5aa363b1ec6e77738cb42b85c18f3cb.tar.xz rpmdrake-796734b3e5aa363b1ec6e77738cb42b85c18f3cb.zip |
no need to implement our own cell renderer
-rwxr-xr-x | rpmdrake | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -252,7 +252,13 @@ sub run_treeview_dialog { $tree = Gtk3::TreeView->new_with_model($tree_model); $tree->get_selection->set_mode('browse'); - $tree->append_column(Gtk3::TreeViewColumn->new_with_attributes('', Gtk3::MDV::CellRendererPixWithLabel->new, 'pixbuf' => $grp_columns{icon}, label => $grp_columns{label})); + $tree->append_column(my $col = Gtk3::TreeViewColumn->new); + $col->pack_start(my $img_renderer = Gtk3::CellRendererPixbuf->new, $grp_columns{icon}); + $col->set_attributes($img_renderer, pixbuf => $grp_columns{icon}); + + $col->pack_start(my $text_renderer = Gtk3::CellRendererText->new, $grp_columns{label}); + $col->set_attributes($text_renderer, text => $grp_columns{label}); + $tree->set_headers_visible(0); $detail_list_model = Gtk3::ListStore->new("Glib::String", |