[evince] Add public methods to get the UI manager and action group of a EvWindow
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] Add public methods to get the UI manager and action group of a EvWindow
- Date: Thu, 3 Jan 2013 10:03:54 +0000 (UTC)
commit e8e06fe41393279271415c91256311c5726a55f1
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Sat Oct 13 10:55:03 2012 +0200
Add public methods to get the UI manager and action group of a EvWindow
shell/ev-window.c | 16 ++++++++++++++++
shell/ev-window.h | 38 ++++++++++++++++++++------------------
2 files changed, 36 insertions(+), 18 deletions(-)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 8fcc5c9..aca5b1f 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -7667,3 +7667,19 @@ ev_window_get_dbus_object_path (EvWindow *ev_window)
return NULL;
#endif
}
+
+GtkUIManager *
+ev_window_get_ui_manager (EvWindow *ev_window)
+{
+ g_return_val_if_fail (EV_WINDOW (ev_window), NULL);
+
+ return ev_window->priv->ui_manager;
+}
+
+GtkActionGroup *
+ev_window_get_main_action_group (EvWindow *ev_window)
+{
+ g_return_val_if_fail (EV_WINDOW (ev_window), NULL);
+
+ return ev_window->priv->action_group;
+}
diff --git a/shell/ev-window.h b/shell/ev-window.h
index 68a0782..5c618e7 100644
--- a/shell/ev-window.h
+++ b/shell/ev-window.h
@@ -68,24 +68,26 @@ struct _EvWindowClass {
GtkApplicationWindowClass base_class;
};
-GType ev_window_get_type (void) G_GNUC_CONST;
-GtkWidget *ev_window_new (void);
-const char *ev_window_get_uri (EvWindow *ev_window);
-void ev_window_open_uri (EvWindow *ev_window,
- const char *uri,
- EvLinkDest *dest,
- EvWindowRunMode mode,
- const gchar *search_string);
-void ev_window_open_document (EvWindow *ev_window,
- EvDocument *document,
- EvLinkDest *dest,
- EvWindowRunMode mode,
- const gchar *search_string);
-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);
+GType ev_window_get_type (void) G_GNUC_CONST;
+GtkWidget *ev_window_new (void);
+const char *ev_window_get_uri (EvWindow *ev_window);
+void ev_window_open_uri (EvWindow *ev_window,
+ const char *uri,
+ EvLinkDest *dest,
+ EvWindowRunMode mode,
+ const gchar *search_string);
+void ev_window_open_document (EvWindow *ev_window,
+ EvDocument *document,
+ EvLinkDest *dest,
+ EvWindowRunMode mode,
+ const gchar *search_string);
+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);
+GtkUIManager *ev_window_get_ui_manager (EvWindow *ev_window);
+GtkActionGroup *ev_window_get_main_action_group (EvWindow *ev_window);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]