[gnome-builder/editor-layout] update dummy test code



commit ea28685736ce82b37fc1e11384e08caadf29b16a
Author: Christian Hergert <christian hergert me>
Date:   Sat Nov 29 04:00:33 2014 -0800

    update dummy test code

 src/app/gb-application.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/app/gb-application.c b/src/app/gb-application.c
index 543112e..0d5af85 100644
--- a/src/app/gb-application.c
+++ b/src/app/gb-application.c
@@ -351,6 +351,7 @@ gb_application_activate (GApplication *application)
 
   {
     GbEditorDocument *document;
+    GtkSourceLanguage *language;
     GtkSourceFile *file;
     GFile *gfile;
     GtkWindow *window;
@@ -361,7 +362,12 @@ gb_application_activate (GApplication *application)
     gtk_source_file_set_location (file, gfile);
     g_object_unref (gfile);
 
-    document = g_object_new (GB_TYPE_EDITOR_DOCUMENT, "file", file, NULL);
+    language = gtk_source_language_manager_get_language (
+      gtk_source_language_manager_get_default (), "c");
+    document = g_object_new (GB_TYPE_EDITOR_DOCUMENT,
+                             "file", file,
+                             "language", language,
+                             NULL);
     g_object_unref (file);
 
     window = g_object_new (GTK_TYPE_WINDOW, NULL);


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