[gnome-builder/wip/new-workspace] workbench: adjust property requirements for GbWorkbenchAddin:workbench



commit cfd61fa5cf56c1aa2ebdc866b4ea10fc51dce844
Author: Christian Hergert <christian hergert me>
Date:   Sat Jun 6 15:12:42 2015 -0700

    workbench: adjust property requirements for GbWorkbenchAddin:workbench

 src/workbench/gb-workbench-addin.c |    2 +-
 src/workbench/gb-workbench-addin.h |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/workbench/gb-workbench-addin.c b/src/workbench/gb-workbench-addin.c
index 0baaa65..6328947 100644
--- a/src/workbench/gb-workbench-addin.c
+++ b/src/workbench/gb-workbench-addin.c
@@ -46,7 +46,7 @@ gb_workbench_addin_default_init (GbWorkbenchAddinInterface *iface)
                          _("Workbench"),
                          _("The workbench window."),
                          GB_TYPE_WORKBENCH,
-                         (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+                         (G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
   g_object_interface_install_property (iface, gParamSpecs [PROP_WORKBENCH]);
 
   gSignals [LOAD] = g_signal_new ("load",
diff --git a/src/workbench/gb-workbench-addin.h b/src/workbench/gb-workbench-addin.h
index 63b0866..84f42cc 100644
--- a/src/workbench/gb-workbench-addin.h
+++ b/src/workbench/gb-workbench-addin.h
@@ -21,6 +21,8 @@
 
 #include <glib-object.h>
 
+#include "gb-workbench.h"
+
 G_BEGIN_DECLS
 
 #define GB_TYPE_WORKBENCH_ADDIN (gb_workbench_addin_get_type ())


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