summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk2.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-12-16 10:47:06 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-12-16 10:47:06 +0000
commit1fd5a7598e6dcf204b597af3cf5ec6fcc661315d (patch)
treef24055751da1073d0f1140d64d273caf0196b21a /perl-install/mygtk2.pm
parent276fbc764b2a574a7a85f8deffb49e1763da4b8f (diff)
downloaddrakx-1fd5a7598e6dcf204b597af3cf5ec6fcc661315d.tar
drakx-1fd5a7598e6dcf204b597af3cf5ec6fcc661315d.tar.gz
drakx-1fd5a7598e6dcf204b597af3cf5ec6fcc661315d.tar.bz2
drakx-1fd5a7598e6dcf204b597af3cf5ec6fcc661315d.tar.xz
drakx-1fd5a7598e6dcf204b597af3cf5ec6fcc661315d.zip
add option allow_unknown_options for easy compatibility
Diffstat (limited to 'perl-install/mygtk2.pm')
-rw-r--r--perl-install/mygtk2.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm
index ff7cb9d85..84307c900 100644
--- a/perl-install/mygtk2.pm
+++ b/perl-install/mygtk2.pm
@@ -111,7 +111,7 @@ sub _gtk {
}
delete $opts{$_} foreach @known_opts;
- if (%opts) {
+ if (%opts && !$opts{allow_unknown_options}) {
internal_error("$action $class: unknown option(s) " . join(', ', keys %opts));
}
$w;
@@ -404,6 +404,8 @@ sub _gtk__Dialog {
$w->set_transient_for(delete $opts->{transient_for}) if exists $opts->{transient_for};
$w->set_position(delete $opts->{position_policy}) if exists $opts->{position_policy};
}
+ $w->set_title(delete $opts->{title}) if exists $opts->{title};
+
$w;
}