aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-25 02:06:23 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-12-05 14:16:07 +0100
commit796734b3e5aa363b1ec6e77738cb42b85c18f3cb (patch)
treea930df01ed23726675ef8e6c817a2d96a4074901
parentaafcc4901395cdcb72a508b03989dd2a62bfbab5 (diff)
downloadrpmdrake-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-xrpmdrake8
1 files changed, 7 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index 3259476c..ee14745c 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -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",