From 6936524259e0f4209a2ef61bde8570062c074dbf Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Mon, 28 Jun 2010 16:21:44 +0200 Subject: [PATCH] [shell] Add ev_application_get_dbus_connection() --- shell/ev-application.c | 10 ++++++++++ shell/ev-application.h | 1 + 2 files changed, 11 insertions(+) diff --git a/shell/ev-application.c b/shell/ev-application.c index 9d64c088..49ffe0c9 100644 --- a/shell/ev-application.c +++ b/shell/ev-application.c @@ -1003,6 +1003,16 @@ ev_application_init (EvApplication *ev_application) NULL); } +GDBusConnection * +ev_application_get_dbus_connection (EvApplication *application) +{ +#ifdef ENABLE_DBUS + return application->connection; +#else + return NULL; +#endif +} + gboolean ev_application_has_window (EvApplication *application) { diff --git a/shell/ev-application.h b/shell/ev-application.h index ff8d88d2..1623aebf 100644 --- a/shell/ev-application.h +++ b/shell/ev-application.h @@ -65,6 +65,7 @@ void ev_application_open_uri_list (EvApplication *application, GSList *uri_list, GdkScreen *screen, guint32 timestamp); +GDBusConnection *ev_application_get_dbus_connection (EvApplication *application); gboolean ev_application_has_window (EvApplication *application); const gchar * ev_application_get_uri (EvApplication *application); GObject *ev_application_get_media_keys (EvApplication *application); -- 2.43.5