[glade] Added gladeui catalog plugin.



commit 61a5396f71ec958d59dc4ea690e4d4ebbce68322
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Fri Apr 12 21:26:34 2013 +0900

    Added gladeui catalog plugin.
    
    Use this to edit Glade files for Glade (or other IDEs using Glade).

 configure.ac                |   12 ++++++++++++
 plugins/Makefile.am         |    4 ++++
 plugins/gladeui/Makefile.am |    5 +++++
 plugins/gladeui/gladeui.xml |   18 ++++++++++++++++++
 4 files changed, 39 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 0bee33f..cab7fce 100644
--- a/configure.ac
+++ b/configure.ac
@@ -255,6 +255,16 @@ dnl Check for extra functions
 dnl ================================================================
 AC_CHECK_FUNCS(gtk_builder_add_from_resource)
 
+dnl ================================================================
+dnl Enable installation of Gladeui catalog
+dnl ================================================================
+AC_ARG_ENABLE([gladeui],
+       AS_HELP_STRING([--enable-gladeui],
+       [Enable installation of the Gladeui catalog]),
+       [enable_gladeui="$enableval"],[enable_gladeui="no"])
+
+AM_CONDITIONAL(BUILD_GLADEUI, test x"$enable_gladeui" = "xyes")
+
 
 dnl ================================================================
 dnl Testing environment
@@ -302,6 +312,7 @@ plugins/gtk+/icons/Makefile
 plugins/gtk+/icons/16x16/Makefile
 plugins/gtk+/icons/22x22/Makefile
 plugins/python/Makefile
+plugins/gladeui/Makefile
 po/Makefile.in
 doc/Makefile
 doc/version.xml
@@ -320,6 +331,7 @@ Configuration:
        Compiler:                ${CC}
        GTK+ UNIX Print Widgets: ${have_unix_print}
        PYTHON Widgets support:  ${have_python}
+       Gladeui Catalog:         ${enable_gladeui}
        Introspection Data:      ${found_introspection}
 
        Build Reference Manual:  ${enable_gtk_doc}
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index 1324bc4..7eb8b49 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -6,6 +6,10 @@ if BUILD_PYTHON
 SUBDIRS += python
 endif
 
+if BUILD_GLADEUI
+SUBDIRS += gladeui
+endif
+
 dtddir = $(pkgdatadir)/catalogs
 dtd_DATA = glade-catalog.dtd
 
diff --git a/plugins/gladeui/Makefile.am b/plugins/gladeui/Makefile.am
new file mode 100644
index 0000000..a645e3a
--- /dev/null
+++ b/plugins/gladeui/Makefile.am
@@ -0,0 +1,5 @@
+catalogsdir = $(pkgdatadir)/catalogs
+
+catalogs_DATA = gladeui.xml
+
+EXTRA_DIST = $(catalogs_DATA)
diff --git a/plugins/gladeui/gladeui.xml b/plugins/gladeui/gladeui.xml
new file mode 100644
index 0000000..00ba3ce
--- /dev/null
+++ b/plugins/gladeui/gladeui.xml
@@ -0,0 +1,18 @@
+<glade-catalog name="gladeui"
+              depends="gtk+"
+              library="gladeui-2">
+  <glade-widget-classes>
+    <!-- base GTK+ private widgets -->
+    <glade-widget-class name="GladeEditor" generic-name="propertyeditor" title="Property Editor"/>
+    <glade-widget-class name="GladeSignalEditor" generic-name="signaleditor" title="Signal Editor"/>
+    <glade-widget-class name="GladeInspector" generic-name="inspector" title="Inspector"/>
+    <glade-widget-class name="GladePropertyLabel" generic-name="propertylabel" title="Property Label"/>
+  </glade-widget-classes>
+  
+  <glade-widget-group name="gtk-private" title="Glade Widgets">
+    <glade-widget-class-ref name="GladeEditor"/>
+    <glade-widget-class-ref name="GladeSignalEditor"/>
+    <glade-widget-class-ref name="GladeInspector"/>
+    <glade-widget-class-ref name="GladePropertyLabel"/>
+  </glade-widget-group>
+</glade-catalog>


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