[gnome-builder/wip/project-selector: 47/67] project-selector: set default window dimensions
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/project-selector: 47/67] project-selector: set default window dimensions
- Date: Mon, 6 Apr 2015 21:33:07 +0000 (UTC)
commit 46032427758722f41de681df0a9765e52825101d
Author: Christian Hergert <christian hergert me>
Date: Thu Apr 2 20:49:53 2015 -0700
project-selector: set default window dimensions
src/app/gb-application.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/app/gb-application.c b/src/app/gb-application.c
index 442b512..52300df 100644
--- a/src/app/gb-application.c
+++ b/src/app/gb-application.c
@@ -517,6 +517,7 @@ void
gb_application_show_projects_window (GbApplication *self)
{
GbProjectWindow *window;
+ GtkRequisition req;
GList *windows;
g_assert (GB_IS_APPLICATION (self));
@@ -532,8 +533,12 @@ gb_application_show_projects_window (GbApplication *self)
}
}
+ get_default_size (&req);
+
window = g_object_new (GB_TYPE_PROJECT_WINDOW,
"application", self,
+ "default-width", req.width,
+ "default-height", req.height,
NULL);
gtk_window_maximize (GTK_WINDOW (window));
gtk_window_present (GTK_WINDOW (window));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]