[evince/gnome3-style: 1/14] Add public methods to get the UI manager and action group of a EvWindow



commit 4d39db448246c61d467805c81e5886875a8fd8b4
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 2ad0512..adb715c 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -7688,3 +7688,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]