summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk3.pm
diff options
context:
space:
mode:
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