[gnome-builder] app: avoid using gtk_dialog_run().
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] app: avoid using gtk_dialog_run().
- Date: Tue, 20 Jan 2015 06:17:39 +0000 (UTC)
commit 437408575c98c1efefff99cea935cc51804cd030
Author: Christian Hergert <christian hergert me>
Date: Mon Jan 19 21:36:39 2015 -0800
app: avoid using gtk_dialog_run().
src/app/gb-application.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/app/gb-application.c b/src/app/gb-application.c
index fae3040..266a0b4 100644
--- a/src/app/gb-application.c
+++ b/src/app/gb-application.c
@@ -548,8 +548,9 @@ gb_application_activate_support_action (GSimpleAction *action,
GTK_MESSAGE_INFO,
GTK_BUTTONS_CLOSE,
"%s", text);
- gtk_dialog_run (GTK_DIALOG (dialog));
- gtk_widget_destroy (dialog);
+ gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
+ g_signal_connect (dialog, "response", G_CALLBACK (gtk_widget_destroy), NULL);
+ gtk_window_present (GTK_WINDOW (dialog));
cleanup:
g_free (text);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]