summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk3.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-02-10 19:37:06 +0000
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-24 21:28:35 +0100
commita90c75de317ece497ecd0da553c3a0666ae4fd16 (patch)
treea2e14ba9ff5f2662c8f73e13b6ca17f8bfa9f82d /perl-install/mygtk3.pm
parent7f3ec46de7c8c8875c56ccc9efbb10281632fc9f (diff)
downloaddrakx-a90c75de317ece497ecd0da553c3a0666ae4fd16.tar
drakx-a90c75de317ece497ecd0da553c3a0666ae4fd16.tar.gz
drakx-a90c75de317ece497ecd0da553c3a0666ae4fd16.tar.bz2
drakx-a90c75de317ece497ecd0da553c3a0666ae4fd16.tar.xz
drakx-a90c75de317ece497ecd0da553c3a0666ae4fd16.zip
(create_boxradio,create_widgets) adapt to new tooltips API
Diffstat (limited to 'perl-install/mygtk3.pm')
-rw-r--r--perl-install/mygtk3.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm
index 173f0519b..50b2a491f 100644
--- a/perl-install/mygtk3.pm
+++ b/perl-install/mygtk3.pm
@@ -97,8 +97,6 @@ sub gtkval_modify {
}
}
-my $global_tooltips;
-
sub _gtk {
my ($w, $class, $action, $opts) = @_;
@@ -122,8 +120,7 @@ sub _gtk {
$w->signal_connect(realize => delete $opts->{realize}) if exists $opts->{realize};
(delete $opts->{size_group})->add_widget($w) if $opts->{size_group};
if (my $tip = delete $opts->{tip}) {
- $global_tooltips ||= Gtk3::Tooltips->new;
- $global_tooltips->set_tip($w, $tip);
+ $w->set_tooltip_text($tip);
}
#- WARNING: hide_ref and show_ref are not effective until you gtkval_modify the ref