From 796734b3e5aa363b1ec6e77738cb42b85c18f3cb Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 25 Nov 2013 02:06:23 +0100 Subject: no need to implement our own cell renderer --- rpmdrake | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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", -- cgit v1.2.1