From c0370939cd4ee05317fceeecf6f2e9521c7b7749 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 13 Sep 2004 02:32:55 +0000 Subject: (set_help_tip) only use on tooltip group --- perl-install/standalone/draksec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'perl-install/standalone') diff --git a/perl-install/standalone/draksec b/perl-install/standalone/draksec index 5014008cd..6bba9d1b6 100755 --- a/perl-install/standalone/draksec +++ b/perl-install/standalone/draksec @@ -137,10 +137,13 @@ sub new_nonedit_combo { Gtk2::ComboBox->new_with_strings([ to_i18n(@$string_list) ], to_i18n($o_default_value)); } +my $tip; + sub set_help_tip { my ($entry, $default, $opt) = @_; my $help = $security::help::help{$opt}; - gtkset_tip(Gtk2::Tooltips->new, $entry, formatAlaTeX($help) . "\n" . N("(default value: %s)", to_i18n($default))); + my $tips ||= Gtk2::Tooltips->new; + gtkset_tip($tips, $entry, formatAlaTeX($help) . "\n" . N("(default value: %s)", to_i18n($default))); } my $msec = new security::msec; -- cgit v1.2.1