[libgda] Initial work on Glade 3 Support added
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Initial work on Glade 3 Support added
- Date: Thu, 18 Apr 2013 15:20:34 +0000 (UTC)
commit 7bf9be8191470348e056ec17bb0316ca9268dec1
Author: Daniel Espinosa <esodan gmail com>
Date: Wed Apr 17 16:46:07 2013 -0500
Initial work on Glade 3 Support added
configure.ac | 15 +++++++++++++++
libgda-ui/glade/Makefile.am | 4 ++++
libgda-ui/glade/gdaui-catalog.xml | 9 +++++++++
3 files changed, 28 insertions(+)
---
diff --git a/configure.ac b/configure.ac
index d36d55a..482540a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -175,6 +175,7 @@ have_ui=no
have_goocanvas=no
have_graphviz=no
have_sourceview=no
+have_glade=no
AC_ARG_WITH(ui,
AS_HELP_STRING([--with-ui], [Enable GTK+ extension and tools]),
,with_ui=auto)
@@ -251,6 +252,12 @@ then
fi
have_graphviz=no])
fi
+
+ PKG_CHECK_MODULES(GLADE, "gladeui-2.0", [
+ AC_DEFINE(HAVE_GLADE, [1], [Install Glade Catalog])
+ have_glade=yes
+ GLADE_CATALOG=`$PKG_CONFIG --variable=catalogdir`
+ GLADE_PIXMAP=`$PKG_CONFIG --variable=pixmapdir`], [have_glade=no])
fi
AM_CONDITIONAL(HAVE_GDKPIXBUF, test x"$have_gdkpixbuf" = "xyes")
@@ -270,6 +277,12 @@ AM_CONDITIONAL(HAVE_GRAPHVIZ, test x"$have_graphviz" = "xyes")
AC_SUBST(GRAPHVIZ_CFLAGS)
AC_SUBST(GRAPHVIZ_LIBS)
+AM_CONDITIONAL(HAVE_GLADE, test x"$have_glade" = "xyes")
+AC_SUBST(GLADE_CFLAGS)
+AC_SUBST(GLADE_LIBS)
+AC_SUBST(GLADE_CATALOG)
+AC_SUBST(GLADE_PIXMAP)
+
dnl ******************************
dnl Checks for iso codes
@@ -951,6 +964,7 @@ libgda-ui/data-entries/plugins/Makefile
libgda-ui/data/Makefile
libgda-ui/demos/Makefile
libgda-ui/demos/geninclude.pl
+libgda-ui/glade/Makefile
control-center/Makefile
control-center/data/Makefile
tools/Makefile
@@ -1019,6 +1033,7 @@ echo ""
echo " Configuration summary for version $GDA_VERSION"
echo " Installation prefix = $prefix"
echo " Building GTK+ UI extension: `if test x$have_ui != xno; then echo yes; else echo no; fi`"
+echo " Installing Glade GTK+ UI extension catalog: `if test x$have_glade != xno; then echo yes; else echo
no; fi`"
echo " Building Libxslt extension: `if test x$have_xslt != xno; then echo yes; else echo no; fi`"
echo " Building libgda GObject Introspection: `if test x$enable_gda_gi != xno; then echo yes; else echo
no; fi`"
echo " Building libgda-ui GObject Introspection: `if test x$enable_gdaui_gi != xno; then echo yes; else
echo no; fi`"
diff --git a/libgda-ui/glade/Makefile.am b/libgda-ui/glade/Makefile.am
new file mode 100644
index 0000000..af440a9
--- /dev/null
+++ b/libgda-ui/glade/Makefile.am
@@ -0,0 +1,4 @@
+ifdef HAVE_GLADE
+glade_DATA = gdaui-catalog.xml
+gladedir =
+endif
\ No newline at end of file
diff --git a/libgda-ui/glade/gdaui-catalog.xml b/libgda-ui/glade/gdaui-catalog.xml
new file mode 100644
index 0000000..3fb9ee5
--- /dev/null
+++ b/libgda-ui/glade/gdaui-catalog.xml
@@ -0,0 +1,9 @@
+<glade-catalog name="Gdaui" library="libgdaui-5.0" depends="gtk+">
+ <init-function>gdaui_init</init-function>
+ <glade-widget-classes>
+ <glade-widget-class name="GdauiGrid" generic-name="grid" title="Grid"/>
+ </glade-widget-classes>
+ <glade-widget-group name="Gdaui" title="GNOME Data Access Widgets">
+ <glade-widget-class-ref name="GdauiGrid"/>
+ </glade-widget-group>
+</glade-catalog>
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]