Index: configure.in =================================================================== RCS file: /cvs/gnome/gimp/configure.in,v retrieving revision 1.684 diff -u -p -r1.684 configure.in --- configure.in 10 Aug 2005 13:36:34 -0000 1.684 +++ configure.in 10 Aug 2005 22:39:08 -0000 @@ -1195,6 +1195,21 @@ AM_CONDITIONAL(HAVE_GNOMEVFS, test x$hav ###################### +# Check for libgnomeui +###################### + +PKG_CHECK_MODULES(GNOMEUI, libgnomeui-2.0, + have_gnomeui=yes, + AC_MSG_WARN([*** URI plug-in will be built without libgnomeui support (libgnomeui-2.0 not found) ***])) + +AM_CONDITIONAL(HAVE_GNOMEUI, test x$have_gnomeui = xyes) + +if test "x$have_gnomeui" != xyes; then + AC_DEFINE(HAVE_GNOMEUI, 1, "Define to 1 if libgnomeui is available"), +fi + + +###################### # Check for gimp-print ###################### Index: plug-ins/uri/Makefile.am =================================================================== RCS file: /cvs/gnome/gimp/plug-ins/uri/Makefile.am,v retrieving revision 1.3 diff -u -p -r1.3 Makefile.am --- plug-ins/uri/Makefile.am 23 Feb 2005 22:01:57 -0000 1.3 +++ plug-ins/uri/Makefile.am 10 Aug 2005 22:39:08 -0000 @@ -20,8 +20,13 @@ libexec_PROGRAMS = uri if HAVE_GNOMEVFS backend_sources = uri-backend-gnomevfs.c +if HAVE_GNOMEUI +backend_cflags = $(GNOMEVFS_CFLAGS) $(GNOMEUI_CFLAGS) +backend_libs = $(GNOMEVFS_LIBS) $(GNOMEUI_LIBS) +else backend_cflags = $(GNOMEVFS_CFLAGS) backend_libs = $(GNOMEVFS_LIBS) +endif else backend_sources = uri-backend-wget.c endif Index: plug-ins/uri/uri-backend-gnomevfs.c =================================================================== RCS file: /cvs/gnome/gimp/plug-ins/uri/uri-backend-gnomevfs.c,v retrieving revision 1.9 diff -u -p -r1.9 uri-backend-gnomevfs.c --- plug-ins/uri/uri-backend-gnomevfs.c 6 Apr 2005 15:14:57 -0000 1.9 +++ plug-ins/uri/uri-backend-gnomevfs.c 10 Aug 2005 22:39:08 -0000 @@ -20,6 +20,10 @@ #include +#ifdef HAVE_GNOMEUI +#include +#endif + #include #include "libgimp/stdplugins-intl.h" @@ -53,6 +57,10 @@ uri_backend_init (GError **error) g_set_error (error, 0, 0, "Could not initialize GnomeVFS"); return FALSE; } + +#ifdef HAVE_GNOMEUI + gnome_authentication_manager_init (); +#endif return TRUE; }