[gnome-builder/wip/project-selector: 61/66] app: center preferences and new-project window



commit 68cd9fcf33b79f18d8ba1b661fed9398b5bb6871
Author: Christian Hergert <christian hergert me>
Date:   Mon Apr 6 23:01:02 2015 -0700

    app: center preferences and new-project window

 src/app/gb-application-actions.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/app/gb-application-actions.c b/src/app/gb-application-actions.c
index 5ce4576..8a6de83 100644
--- a/src/app/gb-application-actions.c
+++ b/src/app/gb-application-actions.c
@@ -49,6 +49,7 @@ gb_application_actions_preferences (GSimpleAction *action,
 
       window = g_object_new (GB_TYPE_PREFERENCES_WINDOW,
                              "type-hint", GDK_WINDOW_TYPE_HINT_DIALOG,
+                             "window-position", GTK_WIN_POS_CENTER,
                              NULL);
       ide_set_weak_pointer (&self->preferences_window, window);
     }
@@ -209,6 +210,7 @@ gb_application_actions_new_project (GSimpleAction *action,
 
   window = g_object_new (GB_TYPE_NEW_PROJECT_DIALOG,
                          "type-hint", GDK_WINDOW_TYPE_HINT_DIALOG,
+                         "window-position", GTK_WIN_POS_CENTER,
                          NULL);
 
   g_signal_connect_object (window,


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