[Xfce4-commits] [xfce/libxfce4ui] 01/01: Export the glade catalog for Gtk3

noreply at xfce.org noreply at xfce.org
Thu Jun 2 08:34:20 CEST 2016


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository xfce/libxfce4ui.

commit 6b22758aef8060b3c556e00d8602f955f430507a
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Wed Jun 1 09:51:47 2016 +0300

    Export the glade catalog for Gtk3
    
    Build and export the XfceTitledDialog in the glade catalog for
    Gtk3 Applications as well.
    
    Signed-off-by: Eric Koegel <eric.koegel at gmail.com>
---
 configure.ac.in   | 31 +++++++++++++++++++++++++++++++
 glade/Makefile.am | 46 ++++++++++++++++++++++++++++++++++++++++++++--
 2 files changed, 75 insertions(+), 2 deletions(-)

diff --git a/configure.ac.in b/configure.ac.in
index 92f587e..99aa079 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -187,6 +187,8 @@ dnl *** Optional support for the Glade Interface Designer ***
 dnl *********************************************************
 XDT_CHECK_OPTIONAL_PACKAGE([GLADEUI], [gladeui-1.0],
                            [3.5.0], [gladeui], [glade interface designer])
+XDT_CHECK_OPTIONAL_PACKAGE([GLADEUI2], [gladeui-2.0],
+                           [3.5.0], [gladeui2], [glade interface designer])
 AC_ARG_WITH([gladeui-catalogdir],
             [AC_HELP_STRING([--with-gladeui-catalogdir=PATH],
                             [Specify where to install glade designer catalog files (default=autodetect)])],
@@ -220,6 +222,27 @@ AC_SUBST([GLADEUI_CATALOGDIR])
 AC_SUBST([GLADEUI_MODULEDIR])
 AC_SUBST([GLADEUI_PIXMAPDIR])
 
+if test x"$GLADEUI2_FOUND" = x"yes"; then
+  if test x"$gladeui2_catalogdir" = x""; then
+    GLADEUI2_CATALOGDIR=`$PKG_CONFIG "--variable=catalogdir" "gladeui-2.0"`
+  else
+    GLADEUI2_CATALOGDIR="$gladeui_catalogdir"
+  fi
+  if test x"$gladeui2_moduledir" = x""; then
+    GLADEUI2_MODULEDIR=`$PKG_CONFIG "--variable=moduledir" "gladeui-2.0"`
+  else
+    GLADEUI2_MODULEDIR="$gladeui_moduledir"
+  fi
+  if test x"$gladeui2_pixmapdir" = x""; then
+    GLADEUI2_PIXMAPDIR=`$PKG_CONFIG "--variable=pixmapdir" "gladeui-2.0"`
+  else
+    GLADEUI2_PIXMAPDIR="$gladeui_pixmapdir"
+  fi
+fi
+AC_SUBST([GLADEUI2_CATALOGDIR])
+AC_SUBST([GLADEUI2_MODULEDIR])
+AC_SUBST([GLADEUI2_PIXMAPDIR])
+
 dnl *************************
 dnl *** Check for gtk-doc ***
 dnl *************************
@@ -331,6 +354,14 @@ echo "  - Pixmap directory:        $GLADEUI_PIXMAPDIR"
 else
 echo "* Glade Interface Designer:  no"
 fi
+if test x"$GLADEUI2_FOUND" = x"yes"; then
+echo "* Glade 3.0 Interface Designer:  yes"
+echo "  - Catalog directory:       $GLADEUI2_CATALOGDIR"
+echo "  - Module directory:        $GLADEUI2_MODULEDIR"
+echo "  - Pixmap directory:        $GLADEUI2_PIXMAPDIR"
+else
+echo "* Glade 3.0 Interface Designer:  no"
+fi
 if test x"$enable_keyboard_library" = x"yes"; then
 echo "* Keyboard library support:  yes"
 else
diff --git a/glade/Makefile.am b/glade/Makefile.am
index 58746df..b1ac4c8 100644
--- a/glade/Makefile.am
+++ b/glade/Makefile.am
@@ -46,10 +46,52 @@ gladecatalog_DATA = \
 @INTLTOOL_XML_NOMERGE_RULE@
 endif
 
+if HAVE_GLADEUI2
+##
+## Glade module
+##
+glademoduledir = \
+	$(GLADEUI2_MODULEDIR)
+
+glademodule_LTLIBRARIES = \
+	libxfce4uiglade2.la
+
+libxfce4uiglade2_la_SOURCES  = \
+	libxfce4ui-glade.c
+
+libxfce4uiglade2_la_CFLAGS = \
+	$(GLADEUI2_CFLAGS) \
+	$(LIBXFCE4UTIL_CFLAGS) \
+	$(PLATFORM_CFLAGS)
+
+libxfce4uiglade2_la_LDFLAGS = \
+	-no-undefined \
+	-avoid-version \
+	-module \
+	$(PLATFORM_LDFLAGS)
+
+libxfce4uiglade2_la_LIBADD = \
+	$(top_builddir)/libxfce4ui/libxfce4ui-2.la \
+	$(LIBXFCE4UTIL_LIBS) \
+	$(GLADEUI2_LIBS)
+
+##
+## Glade catalog xml file
+##
+gladecatalogdir = \
+	$(GLADEUI2_CATALOGDIR)
+gladecatalog_DATA = \
+	libxfce4ui-2.xml \
+	libxfce4ui-2.xml.in
+ at INTLTOOL_XML_NOMERGE_RULE@
+endif
+
 CLEANFILES = \
-	libxfce4ui.xml
+	libxfce4ui.xml	\
+	libxfce4ui-2.xml
 
 EXTRA_DIST = \
-	libxfce4ui.xml.in
+	libxfce4ui.xml.in	\
+	libxfce4ui-2.xml.in
 
 # vi:set ts=8 sw=8 noet ai nocindent syntax=automake:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list