Bug 482156 - Get rid of (unnecessary) LIBGNOME dependency. r=bsmedberg and roc

This commit is contained in:
Antonio Gomes (tonikitoo) 2009-03-09 19:38:59 -04:00
parent 60b0f45a27
commit 09e8f13ecb
4 changed files with 6 additions and 24 deletions

View File

@ -248,6 +248,7 @@ MOZ_ENABLE_STARTUP_NOTIFICATION = @MOZ_ENABLE_STARTUP_NOTIFICATION@
MOZ_STARTUP_NOTIFICATION_CFLAGS = @MOZ_STARTUP_NOTIFICATION_CFLAGS@
MOZ_STARTUP_NOTIFICATION_LIBS = @MOZ_STARTUP_NOTIFICATION_LIBS@
MOZ_ENABLE_GNOMEVFS = @MOZ_ENABLE_GNOMEVFS@
MOZ_GNOMEVFS_CFLAGS = @MOZ_GNOMEVFS_CFLAGS@
MOZ_GNOMEVFS_LIBS = @MOZ_GNOMEVFS_LIBS@
@ -255,9 +256,6 @@ MOZ_ENABLE_GCONF = @MOZ_ENABLE_GCONF@
MOZ_GCONF_CFLAGS = @MOZ_GCONF_CFLAGS@
MOZ_GCONF_LIBS = @MOZ_GCONF_LIBS@
MOZ_LIBGNOME_CFLAGS = @MOZ_LIBGNOME_CFLAGS@
MOZ_LIBGNOME_LIBS = @MOZ_LIBGNOME_LIBS@
MOZ_ENABLE_GNOME_COMPONENT = @MOZ_ENABLE_GNOME_COMPONENT@
MOZ_INSURE = @MOZ_INSURE@

View File

@ -5092,7 +5092,6 @@ then
then
MOZ_ENABLE_GNOMEVFS=1
MOZ_ENABLE_GCONF=1
MOZ_ENABLE_LIBGNOME=1
fi
MOZ_ARG_DISABLE_BOOL(gnomevfs,
@ -5114,6 +5113,7 @@ then
])
fi
AC_SUBST(MOZ_ENABLE_GNOMEVFS)
AC_SUBST(MOZ_GNOMEVFS_CFLAGS)
AC_SUBST(MOZ_GNOMEVFS_LIBS)
@ -5135,24 +5135,11 @@ then
AC_SUBST(MOZ_GCONF_CFLAGS)
AC_SUBST(MOZ_GCONF_LIBS)
if test "$MOZ_ENABLE_LIBGNOME"
then
PKG_CHECK_MODULES(MOZ_LIBGNOME, libgnome-2.0 >= $LIBGNOME_VERSION,[
MOZ_LIBGNOME_LIBS=`echo $MOZ_LIBGNOME_LIBS | sed 's/-llinc\>//'`
MOZ_ENABLE_LIBGNOME=1
],[
MOZ_ENABLE_LIBGNOME=
])
fi
AC_SUBST(MOZ_LIBGNOME_CFLAGS)
AC_SUBST(MOZ_LIBGNOME_LIBS)
# The GNOME component is built if gtk2, gconf, gnome-vfs, and libgnome
# The GNOME component is built if gtk2, gconf and gnome-vfs
# are all available.
if test "$MOZ_ENABLE_GTK2" -a "$MOZ_ENABLE_GCONF" -a \
"$MOZ_ENABLE_GNOMEVFS" -a "$MOZ_ENABLE_LIBGNOME"; then
"$MOZ_ENABLE_GNOMEVFS"; then
MOZ_ENABLE_GNOME_COMPONENT=1
else
MOZ_ENABLE_GNOME_COMPONENT=

View File

@ -77,7 +77,6 @@ EXTRA_DSO_LDOPTS += \
$(NSPR_LIBS) \
$(MOZ_GCONF_LIBS) \
$(MOZ_GNOMEVFS_LIBS) \
$(MOZ_LIBGNOME_LIBS) \
$(GLIB_LIBS) \
$(MOZ_LIBNOTIFY_LIBS) \
$(NULL)
@ -89,7 +88,6 @@ include $(topsrcdir)/config/rules.mk
CXXFLAGS += \
$(MOZ_GCONF_CFLAGS) \
$(MOZ_GNOMEVFS_CFLAGS) \
$(MOZ_LIBGNOME_CFLAGS) \
$(GLIB_CFLAGS) \
$(MOZ_LIBNOTIFY_CFLAGS) \
$(NULL)

View File

@ -49,7 +49,6 @@ extern "C" {
#include <libgnomevfs/gnome-vfs-mime.h>
#include <libgnomevfs/gnome-vfs-mime-handlers.h>
#include <libgnomevfs/gnome-vfs-mime-info.h>
#include <libgnome/gnome-url.h>
}
class nsGnomeVFSMimeApp : public nsIGnomeVFSMimeApp
@ -264,7 +263,7 @@ nsGnomeVFSService::ShowURI(nsIURI *aURI)
nsCAutoString spec;
aURI->GetSpec(spec);
if (gnome_url_show(spec.get(), NULL))
if (gnome_vfs_url_show_with_env(spec.get(), NULL) == GNOME_VFS_OK)
return NS_OK;
return NS_ERROR_FAILURE;
@ -276,7 +275,7 @@ nsGnomeVFSService::ShowURIForInput(const nsACString &aUri)
char* spec = gnome_vfs_make_uri_from_input(PromiseFlatCString(aUri).get());
nsresult rv = NS_ERROR_FAILURE;
if (gnome_url_show(spec, NULL))
if (gnome_vfs_url_show_with_env(spec, NULL) == GNOME_VFS_OK)
rv = NS_OK;
if (spec)