summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk2.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-08-31 15:42:44 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-08-31 15:42:44 +0000
commit9c3f2927cd33c5a905397d0caf9e4287c52f1359 (patch)
tree283db72f859b15bf23b479bb1cad641a13b6e14d /perl-install/mygtk2.pm
parente1ff37c885f62343424f9a283bb2c5cdff867fa1 (diff)
downloaddrakx-backup-do-not-use-9c3f2927cd33c5a905397d0caf9e4287c52f1359.tar
drakx-backup-do-not-use-9c3f2927cd33c5a905397d0caf9e4287c52f1359.tar.gz
drakx-backup-do-not-use-9c3f2927cd33c5a905397d0caf9e4287c52f1359.tar.bz2
drakx-backup-do-not-use-9c3f2927cd33c5a905397d0caf9e4287c52f1359.tar.xz
drakx-backup-do-not-use-9c3f2927cd33c5a905397d0caf9e4287c52f1359.zip
handle hide_ref and show_ref
Diffstat (limited to 'perl-install/mygtk2.pm')
-rw-r--r--perl-install/mygtk2.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm
index 504325003..5c79c5848 100644
--- a/perl-install/mygtk2.pm
+++ b/perl-install/mygtk2.pm
@@ -118,6 +118,13 @@ sub _gtk {
$global_tooltips->set_tip($w, $tip);
}
+ #- WARNING: hide_ref and show_ref are not effective until you gtkval_modify the ref
+ if (my $hide_ref = delete $opts->{hide_ref}) {
+ gtkval_register($w, $hide_ref, sub { $$hide_ref ? $w->hide : $w->show });
+ } elsif (my $show_ref = delete $opts->{show_ref}) {
+ gtkval_register($w, $show_ref, sub { $$show_ref ? $w->show : $w->hide });
+ }
+
if (%$opts && !$opts->{allow_unknown_options}) {
internal_error("$action $class: unknown option(s) " . join(', ', keys %$opts));
}