[gnome-todo] window: don't block mainloop when showing error details



commit 1ebc38779d1db9912a0e016558753874aa600c37
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Aug 28 09:37:07 2015 -0300

    window: don't block mainloop when showing error details

 src/gtd-window.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/gtd-window.c b/src/gtd-window.c
index 74b63dc..efd3bc2 100644
--- a/src/gtd-window.c
+++ b/src/gtd-window.c
@@ -144,8 +144,12 @@ error_message_notification_secondary_action (GtdNotification *notification,
                                             "%s",
                                             data->secondary_text);
 
-  gtk_dialog_run (GTK_DIALOG (message_dialog));
-  gtk_widget_destroy (message_dialog);
+  g_signal_connect (message_dialog,
+                    "response",
+                    G_CALLBACK (gtk_widget_destroy),
+                    NULL);
+
+  gtk_widget_show (message_dialog);
 
   error_data_free (data);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]