summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk3.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-08 03:29:08 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-24 23:28:16 +0100
commita45c4e4ca33cc642f3dfac9d9b6652a0cb40485f (patch)
tree49a2fbc79bb3afc0e90d9a3019a2c2f1cd90a542 /perl-install/mygtk3.pm
parentb9dcdd9e3db2bd26f501f7edfd94a54ec778829d (diff)
downloaddrakx-a45c4e4ca33cc642f3dfac9d9b6652a0cb40485f.tar
drakx-a45c4e4ca33cc642f3dfac9d9b6652a0cb40485f.tar.gz
drakx-a45c4e4ca33cc642f3dfac9d9b6652a0cb40485f.tar.bz2
drakx-a45c4e4ca33cc642f3dfac9d9b6652a0cb40485f.tar.xz
drakx-a45c4e4ca33cc642f3dfac9d9b6652a0cb40485f.zip
those setters no more accept undef
Diffstat (limited to 'perl-install/mygtk3.pm')
-rw-r--r--perl-install/mygtk3.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm
index 56ee74117..084d0cedf 100644
--- a/perl-install/mygtk3.pm
+++ b/perl-install/mygtk3.pm
@@ -889,7 +889,7 @@ sub _gtk_any_Window {
$w->set_type_hint('dialog'); # for matchbox window manager
}
- $w->set_modal(delete $opts->{modal}) if exists $opts->{modal};
+ $w->set_modal(to_bool(delete $opts->{modal})) if exists $opts->{modal};
$opts->{transient_for} ||= $::main_window if $::main_window;
$w->set_modal(1) if exists $opts->{transient_for};
$w->set_transient_for(delete $opts->{transient_for}) if exists $opts->{transient_for};
@@ -1038,7 +1038,7 @@ sub _gtk__AboutDialog {
$w->set_documenters(delete $opts->{documenters}) if exists $opts->{documenters};
$w->set_translator_credits(delete $opts->{translator_credits}) if exists $opts->{translator_credits};
$w->set_artists(delete $opts->{artists}) if exists $opts->{artists};
- $w->set_modal(delete $opts->{modal}) if exists $opts->{modal};
+ $w->set_modal(to_bool(delete $opts->{modal})) if exists $opts->{modal};
$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};
}