[gnome-photos/gnome-3-10] application: Fix transient_for of about dialog



commit 2c77dbe3b31cdb48be3517c55480ee2a4ebb3def
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Sep 12 19:10:42 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/photos-application.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index 139640a..51695f7 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -430,6 +430,7 @@ photos_application_startup (GApplication *application)
   priv->camera_cache = photos_camera_cache_dup_singleton ();
 
   priv->mode_cntrlr = photos_mode_controller_dup_singleton ();
+  priv->main_window = photos_main_window_new (GTK_APPLICATION (self));
 
   action = g_simple_action_new ("about", NULL);
   g_signal_connect_swapped (action, "activate", G_CALLBACK (photos_main_window_show_about), 
priv->main_window);
@@ -499,7 +500,6 @@ photos_application_startup (GApplication *application)
   gtk_application_add_accelerator (GTK_APPLICATION (self), "<Primary>p", "app.print-current", NULL);
   gtk_application_add_accelerator (GTK_APPLICATION (self), "<Primary>a", "app.select-all", NULL);
 
-  priv->main_window = photos_main_window_new (GTK_APPLICATION (self));
   photos_mode_controller_set_window_mode (priv->mode_cntrlr, PHOTOS_WINDOW_MODE_OVERVIEW);
 
   photos_application_start_miners (self);


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