summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-04-21 00:33:35 +0000
committerThierry Vignaud <tv@mageia.org>2013-04-21 00:33:35 +0000
commit4c22253e18abdf74ac63631828c1fb37d067f71b (patch)
tree46b1d1a58a80b4d69745a53f4997bb4758585108 /perl-install
parent1b1c9ca4a9d11ce008caa98dc40ee37a415b9a35 (diff)
downloaddrakx-backup-do-not-use-4c22253e18abdf74ac63631828c1fb37d067f71b.tar
drakx-backup-do-not-use-4c22253e18abdf74ac63631828c1fb37d067f71b.tar.gz
drakx-backup-do-not-use-4c22253e18abdf74ac63631828c1fb37d067f71b.tar.bz2
drakx-backup-do-not-use-4c22253e18abdf74ac63631828c1fb37d067f71b.tar.xz
drakx-backup-do-not-use-4c22253e18abdf74ac63631828c1fb37d067f71b.zip
only enable "quit confirm" popup dialog when asked (mga#8476)
(when clicking "X")
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/NEWS3
-rw-r--r--perl-install/mygtk2.pm7
2 files changed, 10 insertions, 0 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index dfeb3452d..6fb502bf7 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,3 +1,6 @@
+- popup dialog confirming to quit when clicking "X" (mga#8476):
+ o do not enable it by default
+ o enable apps to enable it on demand
- updated translations
Version 15.40 - 19 April 2013
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm
index 3cd9e59f2..779e77e8f 100644
--- a/perl-install/mygtk2.pm
+++ b/perl-install/mygtk2.pm
@@ -1212,8 +1212,15 @@ sub mygtk2::MagicWindow::AUTOLOAD {
$w->{$s1}->$meth(@args);
}
+my $enable_quit_popup;
+sub enable_quit_popup {
+ my ($bool) = @_;
+ $enable_quit_popup = $bool;
+}
+
state $in_callback;
sub quit_popup() {
+ return if !$enable_quit_popup;
if (!$in_callback) {
$in_callback = 1;
my $_guard = before_leaving { undef $in_callback };