summaryrefslogtreecommitdiff
path: root/shell/ev-application.h
diff options
context:
space:
mode:
authorChristian Persch <[email protected]>2012-06-12 18:53:35 +0200
committerraveit65 <[email protected]>2018-03-21 06:56:34 +0100
commit15073fb029c8fc78d7184be7bc0e70d4cbe5ac1b (patch)
tree8f82df7538706918770f0ff860c07147594c2f8f /shell/ev-application.h
parent715e15b587b66122750f1565f24ea7bb818d2061 (diff)
downloadatril-15073fb029c8fc78d7184be7bc0e70d4cbe5ac1b.tar.bz2
atril-15073fb029c8fc78d7184be7bc0e70d4cbe5ac1b.tar.xz
shell: Port to GtkApplication
origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-6&id=b999bdd
Diffstat (limited to 'shell/ev-application.h')
-rw-r--r--shell/ev-application.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/shell/ev-application.h b/shell/ev-application.h
index 4724148e..f0561b55 100644
--- a/shell/ev-application.h
+++ b/shell/ev-application.h
@@ -44,12 +44,11 @@ typedef struct _EvApplicationClass EvApplicationClass;
#define EV_IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_APPLICATION))
#define EV_APPLICATION_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_APPLICATION, EvApplicationClass))
-#define EV_APP (ev_application_get_instance ())
+#define EV_APP ((EvApplication *) g_application_get_default ())
GType ev_application_get_type (void) G_GNUC_CONST;
-EvApplication *ev_application_get_instance (void);
+EvApplication *ev_application_new (void);
-void ev_application_shutdown (EvApplication *application);
gboolean ev_application_load_session (EvApplication *application);
void ev_application_open_window (EvApplication *application,
GdkScreen *screen,
@@ -65,7 +64,6 @@ 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);
guint ev_application_get_n_windows (EvApplication *application);
const gchar * ev_application_get_uri (EvApplication *application);