From: Jose Aliste Date: Fri, 9 Jul 2010 07:45:15 +0000 (+0200) Subject: [shell] Add ev_window_get_dbus_object_path() X-Git-Tag: EVINCE_2_31_5~22 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=978dfa3ec32febd2c69fa886b1abe31437bf0184;p=evince.git [shell] Add ev_window_get_dbus_object_path() --- diff --git a/shell/ev-window.c b/shell/ev-window.c index e79bf008..b00deeea 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -6728,3 +6728,12 @@ ev_window_new (void) return ev_window; } +const gchar * +ev_window_get_dbus_object_path (EvWindow *ev_window) +{ +#ifdef ENABLE_DBUS + return ev_window->priv->dbus_object_path; +#else + return NULL; +#endif +} diff --git a/shell/ev-window.h b/shell/ev-window.h index 09055da8..1173390b 100644 --- a/shell/ev-window.h +++ b/shell/ev-window.h @@ -85,6 +85,8 @@ gboolean ev_window_is_empty (const EvWindow *ev_window); void ev_window_print_range (EvWindow *ev_window, int first_page, int last_page); +const gchar * ev_window_get_dbus_object_path (EvWindow *ev_window); + G_END_DECLS