[evince] [shell] Add ev_application_get_dbus_connection()



commit 6936524259e0f4209a2ef61bde8570062c074dbf
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Mon Jun 28 16:21:44 2010 +0200

    [shell] Add ev_application_get_dbus_connection()

 shell/ev-application.c |   10 ++++++++++
 shell/ev-application.h |    1 +
 2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/shell/ev-application.c b/shell/ev-application.c
index 9d64c08..49ffe0c 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 ff8d88d..1623aeb 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]