[Glade-devel] Gnome-Db's catalog for Glade3 - Version to Test



On 7/6/06, Daniel Espinosa <esodan at gmail.com> wrote:

Could you helpme about include this catalog in the source, and if posible,
send me the version to compile and test it?


Hi Daniel,
    Firstly, I hope you dont think I've forgotton about you... I havent been
turning on my PC much this week so I'll have to catch up and touch base
with everyone.

With regards to adding the gnome-db component to glade3 and getting
it built properly... this is the proceedure (like the gnomeui catalog does):

configure.in needs a block like this:
dnl ================================================================

dnl ================================================================
dnl Check for optional gnome libs
dnl ================================================================
AC_ARG_ENABLE(gnome,
[  --disable-gnome         disable gnome catalog],
    check_gnome=$enableval, check_gnome=yes)

if test x"$check_gnome" = x"yes"; then
  PKG_CHECK_MODULES(GNOME, libbonoboui-2.0 libgnomeui-2.0,
    [have_gnome=yes],[have_gnome=no])
  AC_SUBST(GNOME_LIBS)
  AC_SUBST(GNOME_CFLAGS)
else
  have_gnome=no
fi

AM_CONDITIONAL(BUILD_GNOME, test x"$have_gnome" = "xyes")

dnl ================================================================

Ofcourse,
    you'll be substituting 'GNOME' here for 'GNOMEDB' and checking for the
appropriate libraries with PKG_CHECK_MODULES...

You'll also need to mention the gnomedb catalog in src/Makefile.am like the
gnome ui catalog does:
###################################################################
if BUILD_GNOME
gladegnome_LTLIBRARIES = libgladegnome.la
gladegnomedir = $(glade_modulesdir)
libgladegnome_la_SOURCES = glade-gnome.c
libgladegnome_la_CFLAGS = -g -Wall $(GNOME_CFLAGS)
libgladegnome_la_LDFLAGS = -module -avoid-version $(GNOME_LIBS)
libgladegnome_la_LIBADD = libgladeui-1.la $(GLADE_LIBS)
endif
###################################################################

And thats all you have to do for the source code...

The gnomedb.xml.in file goes into $(glade3)/widgets/ ... look at
the $(glade3)/widgets/Makefile.am and adjust it for the newly added
catalog.

I'm not sure if I'll have time to test it tonight... but I'll take a look
over
the next few days and then we can look at setting up a stock property
if you need one.

Cheers,
                    -Tristan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-devel/attachments/20060710/c0bbac73/attachment.html 




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