diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-26 07:07:27 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-12-05 14:20:25 +0100 |
commit | f055769e2c99650bdbbc1aadfc9fa69ada394fb1 (patch) | |
tree | 879576c2b73428772cf68f159f59ff9f70d44707 | |
parent | c059ed1a4c9a21410ef6db2b9b9fc0d46a1300aa (diff) | |
download | urpmi-f055769e2c99650bdbbc1aadfc9fa69ada394fb1.tar urpmi-f055769e2c99650bdbbc1aadfc9fa69ada394fb1.tar.gz urpmi-f055769e2c99650bdbbc1aadfc9fa69ada394fb1.tar.bz2 urpmi-f055769e2c99650bdbbc1aadfc9fa69ada394fb1.tar.xz urpmi-f055769e2c99650bdbbc1aadfc9fa69ada394fb1.zip |
perlish vbox() => get_child()
-rwxr-xr-x | gurpmi2 | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -113,7 +113,7 @@ sub ask_warn { my $w; if ($nb_lines > 30 || $message =~ /^transaction is too small/) { $w = Gtk3::Dialog->new(N("Warning"), $mainw, [qw(modal destroy-with-parent)], N("Ok"), 'ok'); - $w->vbox->add(my $f = Gtk3::Frame->new); + $w->get_child->add(my $f = Gtk3::Frame->new); my $sw = create_scrolled_window(my $text = Gtk3::TextView->new); $sw->set_border_width(2); $text->set_wrap_mode('word'); @@ -169,8 +169,8 @@ sub ask_choice { my $d = Gtk3::Dialog->new(N("Package choice"), $mainw, [], N("_Cancel") => 0, N("_Ok") => 1); my $label = Gtk3::Label->new(N("One of the following packages is needed:")); $label->set_alignment(0.5, 0.5); - $d->vbox->pack_start($label, 1, 1, 0); - $d->vbox->pack_start($_, 1, 1, 0) foreach @radios; + $d->get_child->pack_start($label, 1, 1, 0); + $d->get_child->pack_start($_, 1, 1, 0) foreach @radios; my $n = 0; $d->signal_connect(response => sub { if ($_[1] == 1) { #- "ok" |