From 9561d77816c50cc2ee98c690c0133641e2df3ad2 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 24 Jun 2005 07:04:05 +0000 Subject: add "default_width" and "default_height" for Gtk2::Window --- perl-install/mygtk2.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm index 891c20635..2dee5daca 100644 --- a/perl-install/mygtk2.pm +++ b/perl-install/mygtk2.pm @@ -435,6 +435,7 @@ sub _gtk_any_Window { $w->set_border_width(delete $opts->{border_width}) if exists $opts->{border_width}; $w->set_shadow_type(delete $opts->{shadow_type}) if exists $opts->{shadow_type}; $w->set_position(delete $opts->{position_policy}) if exists $opts->{position_policy}; + $w->set_default_size(delete $opts->{default_width} || -1, delete $opts->{default_height} || -1) if exists $opts->{default_width} || exists $opts->{default_height}; my $icon_no_error = $opts->{icon_no_error}; if (my $name = delete $opts->{icon} || delete $opts->{icon_no_error}) { if (my $f = _find_imgfile($name)) { -- cgit v1.2.1