[PATCH] Fix inhibited suspend prompt dialog

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[PATCH] Fix inhibited suspend prompt dialog

gavinli
From: Gavin Li <[hidden email]>

Clicking "Yes" in the inhibit suspend prompt dialog currently does nothing
and suspend continues anyways. This patch fixes that problem.

---
 src/xfpm-power.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xfpm-power.c b/src/xfpm-power.c
index 172cff8..ed5b184 100644
--- a/src/xfpm-power.c
+++ b/src/xfpm-power.c
@@ -391,7 +391,7 @@ xfpm_power_sleep (XfpmPower *power, const gchar *sleep_time, gboolean force)
  gtk_widget_destroy (dialog);
 
 
- if ( !ret )
+ if ( ret != GTK_RESPONSE_YES )
     return;
     }
 
--
2.13.2

_______________________________________________
Xfce4-dev mailing list
[hidden email]
https://mail.xfce.org/mailman/listinfo/xfce4-dev
Loading...