[evince] shell: Add ev_window_get_toolbar



commit 3213be229279694fd19a70b917302f2e6340824f
Author: José Aliste <jaliste src gnome org>
Date:   Fri Jul 25 11:53:34 2014 -0400

    shell: Add ev_window_get_toolbar
    
    We need this to set the title and subtitle of the Toolbar.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=733746

 shell/ev-window.c |    8 ++++++++
 shell/ev-window.h |    1 +
 2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 14555e0..1abc688 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -7255,6 +7255,14 @@ ev_window_get_document_model (EvWindow *ev_window)
        return ev_window->priv->model;
 }
 
+GtkWidget *
+ev_window_get_toolbar (EvWindow *ev_window)
+{
+       g_return_val_if_fail (EV_WINDOW (ev_window), NULL);
+
+       return ev_window->priv->toolbar;
+}
+
 void
 ev_window_focus_view (EvWindow *ev_window)
 {
diff --git a/shell/ev-window.h b/shell/ev-window.h
index eac0501..7624caf 100644
--- a/shell/ev-window.h
+++ b/shell/ev-window.h
@@ -93,6 +93,7 @@ GMenuModel     *ev_window_get_bookmarks_menu             (EvWindow       *ev_win
 EvHistory      *ev_window_get_history                    (EvWindow       *ev_window);
 EvDocumentModel *ev_window_get_document_model            (EvWindow       *ev_window);
 void            ev_window_focus_view                     (EvWindow       *ev_window);
+GtkWidget      *ev_window_get_toolbar                   (EvWindow       *ev_window);
 
 G_END_DECLS
 


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