[gnome-builder/editor-layout] add some more test code for now
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/editor-layout] add some more test code for now
- Date: Sun, 30 Nov 2014 02:20:27 +0000 (UTC)
commit 6f54234394197ac2546fb528d1fc60fe956324a7
Author: Christian Hergert <christian hergert me>
Date: Sat Nov 29 18:18:40 2014 -0800
add some more test code for now
src/app/gb-application.c | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/src/app/gb-application.c b/src/app/gb-application.c
index 7e3a77e..13f4cc5 100644
--- a/src/app/gb-application.c
+++ b/src/app/gb-application.c
@@ -356,6 +356,7 @@ gb_application_activate (GApplication *application)
GFile *gfile;
GtkWindow *window;
GtkWidget *frame;
+ GtkPaned *paned;
file = gtk_source_file_new ();
gfile = g_file_new_for_path ("src/app/gb-application.c");
@@ -370,13 +371,25 @@ gb_application_activate (GApplication *application)
NULL);
g_object_unref (file);
- window = g_object_new (GTK_TYPE_WINDOW, NULL);
+ window = g_object_new (GTK_TYPE_WINDOW,
+ NULL);
+ paned = g_object_new (GTK_TYPE_PANED,
+ "orientation", GTK_ORIENTATION_VERTICAL,
+ "visible", TRUE,
+ NULL);
+ gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (paned));
+ frame = g_object_new (GB_TYPE_EDITOR_FRAME,
+ "document", document,
+ "visible", TRUE,
+ NULL);
+ gtk_container_add (GTK_CONTAINER (paned), GTK_WIDGET (frame));
frame = g_object_new (GB_TYPE_EDITOR_FRAME,
"document", document,
"visible", TRUE,
NULL);
+ gtk_container_add (GTK_CONTAINER (paned), GTK_WIDGET (frame));
+ gtk_window_maximize (window);
g_object_unref (document);
- gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (frame));
gtk_window_present (window);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]