summaryrefslogtreecommitdiffstats
path: root/perl-install/my_gtk.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-11-06 14:09:31 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-11-06 14:09:31 +0000
commit63b64f0a134be8d6a054297c3d1c83571dbc91aa (patch)
tree2c140a1a2cae33c573bd0ab9d86575d489bf3ccf /perl-install/my_gtk.pm
parentd4c48e8a8f0c4213dc6fb0fdaa606c1f50417430 (diff)
downloaddrakx-backup-do-not-use-63b64f0a134be8d6a054297c3d1c83571dbc91aa.tar
drakx-backup-do-not-use-63b64f0a134be8d6a054297c3d1c83571dbc91aa.tar.gz
drakx-backup-do-not-use-63b64f0a134be8d6a054297c3d1c83571dbc91aa.tar.bz2
drakx-backup-do-not-use-63b64f0a134be8d6a054297c3d1c83571dbc91aa.tar.xz
drakx-backup-do-not-use-63b64f0a134be8d6a054297c3d1c83571dbc91aa.zip
no_comment
Diffstat (limited to 'perl-install/my_gtk.pm')
-rw-r--r--perl-install/my_gtk.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/my_gtk.pm b/perl-install/my_gtk.pm
index 733cad611..848a764a4 100644
--- a/perl-install/my_gtk.pm
+++ b/perl-install/my_gtk.pm
@@ -197,7 +197,7 @@ sub create_okcancel($;$$) {
gtkadd(create_hbox(),
gtksignal_connect($w->{ok} = new Gtk::Button($ok || _("Ok")), "clicked" => $w->{ok_clicked} || sub { $w->{retval} = 1; Gtk->main_quit }),
- gtksignal_connect(new Gtk::Button($cancel || _("Cancel")), "clicked" => $w->{cancel_clicked} || sub { $w->{retval} = 0; Gtk->main_quit }),
+ ($ok xor $cancel) ? () : gtksignal_connect(new Gtk::Button($cancel || _("Cancel")), "clicked" => $w->{cancel_clicked} || sub { $w->{retval} = 0; Gtk->main_quit }),
);
}