aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-19 21:37:27 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-12-05 14:16:06 +0100
commit7a48e63e62e430ef87869da6bdda92fec1161be2 (patch)
treeb2f7d4afe7cb1d482f5fe3321e0deca7a3527d9d
parent581d70ff9bbdb93dca53e1c46ddb10b2b1eaa945 (diff)
downloadrpmdrake-7a48e63e62e430ef87869da6bdda92fec1161be2.tar
rpmdrake-7a48e63e62e430ef87869da6bdda92fec1161be2.tar.gz
rpmdrake-7a48e63e62e430ef87869da6bdda92fec1161be2.tar.bz2
rpmdrake-7a48e63e62e430ef87869da6bdda92fec1161be2.tar.xz
rpmdrake-7a48e63e62e430ef87869da6bdda92fec1161be2.zip
Gtk3::TreeViewColumn implements the Gtk3::CellLayout interface, which provides the get_cells() method
-rwxr-xr-xMageiaUpdate6
-rw-r--r--Rpmdrake/gui.pm2
2 files changed, 4 insertions, 4 deletions
diff --git a/MageiaUpdate b/MageiaUpdate
index 8bde8afc..f111c31e 100755
--- a/MageiaUpdate
+++ b/MageiaUpdate
@@ -224,14 +224,14 @@ sub run_treeview_dialog {
# -1 because actual widget count differs from TreeModel one due to the hidden column:
foreach (@pkg_columns{qw(short_name version release arch)}) {
my $col = $list->get_column($_-1);
- ($col->get_cell_renderers)[0]->set_property('xpad', '6');
+ ($col->get_cells)[0]->set_property('xpad', '6');
$col->set_sizing('autosize');
$col->set_sort_column_id($_);
}
my $pretty_column = $list->get_column($pkg_columns{short_name}-1);
$pretty_column->set_resizable(1);
- ($pretty_column->get_cell_renderers)[0]->set_property('ellipsize', 'end');
+ ($pretty_column->get_cells)[0]->set_property('ellipsize', 'end');
$pretty_column->set_property('expand', '1');
$list->get_selection->signal_connect(changed => sub {
@@ -260,7 +260,7 @@ sub run_treeview_dialog {
refresh_packages_list($list, $info, $update_button);
- my $cell = ($bool_col->get_cell_renderers)[0];
+ my $cell = ($bool_col->get_cells)[0];
$cell->signal_connect(toggled => sub {
my ($_cell, $text_path) = @_;
my $name = $list->{data}[$text_path][$pkg_columns{text}];
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index d653daca..793b662e 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -585,7 +585,7 @@ sub ask_browse_tree_given_widgets_for_rpmdrake {
$model && $iter or return;
$common->{display_info}($model->get($iter, $pkg_columns{text}));
});
- ($w->{detail_list}->get_column(0)->get_cell_renderers)[0]->signal_connect(toggled => sub {
+ ($w->{detail_list}->get_column(0)->get_cells)[0]->signal_connect(toggled => sub {
my ($_cell, $path) = @_; #text_
my $iter = $w->{detail_list_model}->get_iter_from_string($path);
$fast_toggle->($iter) if $iter;