From fe013012234a58930a0e899487370c619bbf786b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 25 May 2015 08:23:02 -0400 Subject: switch from obsolete [HV]Panel to Panel widget --- perl-install/mygtk3.pm | 2 +- perl-install/ugtk3.pm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'perl-install') diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm index f0f2bfaad..fb01ddfed 100644 --- a/perl-install/mygtk3.pm +++ b/perl-install/mygtk3.pm @@ -1093,7 +1093,7 @@ sub _gtk_any_Paned { my ($w, $opts, $class, $action) = @_; if (!$w) { - $w = "Gtk3::$class"->new; + $w = Gtk3::Paned->new($class =~ /V/ ? 'vertical' : 'horizontal'); $w->set_border_width(delete $opts->{border_width}) if exists $opts->{border_width}; $w->set_position(delete $opts->{position}) if exists $opts->{position}; } elsif ($action eq 'gtkset') { diff --git a/perl-install/ugtk3.pm b/perl-install/ugtk3.pm index de6c312c1..ff731a4bb 100644 --- a/perl-install/ugtk3.pm +++ b/perl-install/ugtk3.pm @@ -656,11 +656,11 @@ sub _setup_paned { } sub create_vpaned { - _setup_paned(Gtk3::VPaned->new, @_); + _setup_paned(Gtk3::Paned->new('vertical'), @_); } sub create_hpaned { - _setup_paned(Gtk3::HPaned->new, @_); + _setup_paned(Gtk3::Paned->new('horizontal'), @_); } sub gtkcreate_frame { -- cgit v1.2.1