[gnome-chat] application: Fix transient_for of about dialog



commit a57542f167ac6eb02272780c33e4ddc5e5f912cc
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Sep 12 18:06:19 2013 +0200

    application: Fix transient_for of about dialog
    
    We are currently explicitly unsetting the transient parent of the
    dialog by passing %NULL to set_transient_for() - make sure the main
    window is created before creating the closure for activating the about
    dialog action ...

 src/chat-application.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/chat-application.c b/src/chat-application.c
index 2d183ab..6abe07f 100644
--- a/src/chat-application.c
+++ b/src/chat-application.c
@@ -88,6 +88,8 @@ chat_application_startup (GApplication *application)
   priv->resource = chat_get_resource ();
   g_resources_register (priv->resource);
 
+  priv->main_window = chat_main_window_new (GTK_APPLICATION (self));
+
   priv->mode_cntrlr = chat_mode_controller_dup_singleton ();
 
   action = g_simple_action_new ("about", NULL);
@@ -114,7 +116,6 @@ chat_application_startup (GApplication *application)
 
   gtk_application_add_accelerator (GTK_APPLICATION (self), "<Primary>q", "app.quit", NULL);
 
-  priv->main_window = chat_main_window_new (GTK_APPLICATION (self));
   chat_mode_controller_set_window_mode (priv->mode_cntrlr, CHAT_WINDOW_MODE_OVERVIEW);
 }
 


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