#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;
return instance;
}
+#if WITH_GNOME
static void
removed_from_session (GnomeClient *client, EvApplication *application)
{
g_signal_connect (client, "die",
G_CALLBACK (removed_from_session), application);
}
+#endif
/**
* ev_display_open_if_needed:
static void
ev_application_init (EvApplication *ev_application)
{
+#if WITH_GNOME
init_session (ev_application);
+#endif
ev_application->toolbars_model = egg_toolbars_model_new ();