[gnome-todo] window: don't block mainloop when showing error details
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] window: don't block mainloop when showing error details
- Date: Fri, 28 Aug 2015 12:39:49 +0000 (UTC)
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]