summaryrefslogtreecommitdiffstats
path: root/gurpmi2
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-26 07:07:27 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-12-05 14:20:25 +0100
commitf055769e2c99650bdbbc1aadfc9fa69ada394fb1 (patch)
tree879576c2b73428772cf68f159f59ff9f70d44707 /gurpmi2
parentc059ed1a4c9a21410ef6db2b9b9fc0d46a1300aa (diff)
downloadurpmi-f055769e2c99650bdbbc1aadfc9fa69ada394fb1.tar
urpmi-f055769e2c99650bdbbc1aadfc9fa69ada394fb1.tar.gz
urpmi-f055769e2c99650bdbbc1aadfc9fa69ada394fb1.tar.bz2
urpmi-f055769e2c99650bdbbc1aadfc9fa69ada394fb1.tar.xz
urpmi-f055769e2c99650bdbbc1aadfc9fa69ada394fb1.zip
perlish vbox() => get_child()
Diffstat (limited to 'gurpmi2')
-rwxr-xr-xgurpmi26
1 files changed, 3 insertions, 3 deletions
diff --git a/gurpmi2 b/gurpmi2
index c0f6fc8f..bb8e60f5 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -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"