[Xfce4-commits] [xfce/xfce4-power-manager] 01/01: Fix handling of dialog responses for suspend and hibernate (Bug #13405)
noreply at xfce.org
noreply at xfce.org
Sun Nov 26 23:56:47 CET 2017
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-power-manager.
commit f911ceb07c5f78fe72887f5438999edb2d7f6d09
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Sun Nov 26 23:55:04 2017 +0100
Fix handling of dialog responses for suspend and hibernate (Bug #13405)
---
src/xfpm-power.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/xfpm-power.c b/src/xfpm-power.c
index ec2bf3a..a1f6851 100644
--- a/src/xfpm-power.c
+++ b/src/xfpm-power.c
@@ -390,7 +390,7 @@ xfpm_power_sleep (XfpmPower *power, const gchar *sleep_time, gboolean force)
gtk_widget_destroy (dialog);
- if ( !ret )
+ if ( !ret || ret == GTK_RESPONSE_NO)
return;
}
@@ -441,7 +441,7 @@ xfpm_power_sleep (XfpmPower *power, const gchar *sleep_time, gboolean force)
ret = gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
- if ( !ret )
+ if ( !ret || ret == GTK_RESPONSE_NO)
return;
}
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list