Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-application.c
diff options
context:
space:
mode:
authorRoss Burton <ross@openedhand.com>2007-05-04 15:17:37 (GMT)
committer Ross Burton <rburton@src.gnome.org>2007-05-04 15:17:37 (GMT)
commit64153d3fe6c59d09f13131db5f376df550f966ac (patch)
treed51ed3f2d6c9ea3c55d4ca9994306a41f2bcd458 /shell/ev-application.c
parentc31fd74da4f237f783d2fc2ef7c614cf5db7ba28 (diff)
Add --without-libgnome, check for libgnome and libgnomeui separately, and
2007-05-04 Ross Burton <ross@openedhand.com> * configure.ac: Add --without-libgnome, check for libgnome and libgnomeui separately, and add them to the symbols as required. * libdocument/ev-file-helpers.c: When building without libgnome, use g_get_user_config_dir instead of gnome_user_dir_get. * shell/ev-application.c: When building without libgnome, don't use session management. * shell/main.c: When building without libgnome, don't use GnomeProgram or initialise the authentication manager. This fixes #328842. svn path=/trunk/; revision=2436
Diffstat (limited to 'shell/ev-application.c')
-rw-r--r--shell/ev-application.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/shell/ev-application.c b/shell/ev-application.c
index 99ab0da..75c2247 100644
--- a/shell/ev-application.c
+++ b/shell/ev-application.c
@@ -33,14 +33,18 @@
#include <gtk/gtkstock.h>
#include <gtk/gtkwidget.h>
#include <gtk/gtkmain.h>
+
+#if WITH_GNOME
#include <libgnomeui/gnome-client.h>
-#include <string.h>
+#endif
#ifdef ENABLE_DBUS
#include "ev-application-service.h"
#include <dbus/dbus-glib-bindings.h>
#endif
+#include <string.h>
+
struct _EvApplication {
GObject base_instance;
@@ -137,6 +141,7 @@ ev_application_get_instance (void)
return instance;
}
+#if WITH_GNOME
static void
removed_from_session (GnomeClient *client, EvApplication *application)
{
@@ -184,6 +189,7 @@ init_session (EvApplication *application)
g_signal_connect (client, "die",
G_CALLBACK (removed_from_session), application);
}
+#endif
/**
* ev_display_open_if_needed:
@@ -603,7 +609,9 @@ ev_application_class_init (EvApplicationClass *ev_application_class)
static void
ev_application_init (EvApplication *ev_application)
{
+#if WITH_GNOME
init_session (ev_application);
+#endif
ev_application->toolbars_model = egg_toolbars_model_new ();