summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-06-24 07:04:05 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-06-24 07:04:05 +0000
commit9561d77816c50cc2ee98c690c0133641e2df3ad2 (patch)
treefededeff513758669a9c07bdf2ca7f32d6711e56 /perl-install
parent3dc812b7bd1d14ddd48bf80e021d5178b375b0b9 (diff)
downloaddrakx-backup-do-not-use-9561d77816c50cc2ee98c690c0133641e2df3ad2.tar
drakx-backup-do-not-use-9561d77816c50cc2ee98c690c0133641e2df3ad2.tar.gz
drakx-backup-do-not-use-9561d77816c50cc2ee98c690c0133641e2df3ad2.tar.bz2
drakx-backup-do-not-use-9561d77816c50cc2ee98c690c0133641e2df3ad2.tar.xz
drakx-backup-do-not-use-9561d77816c50cc2ee98c690c0133641e2df3ad2.zip
add "default_width" and "default_height" for Gtk2::Window
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/mygtk2.pm1
1 files changed, 1 insertions, 0 deletions
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)) {