[evince] shell: remove unused ev_toolbar_has_visible_popups function



commit 803d412e8b60762c124d461f5eba38f0ac445a05
Author: Pablo Correa Gómez <ablocorrea hotmail com>
Date:   Wed Jan 26 14:19:35 2022 +0100

    shell: remove unused ev_toolbar_has_visible_popups function

 shell/ev-toolbar.c | 20 --------------------
 shell/ev-toolbar.h |  1 -
 2 files changed, 21 deletions(-)
---
diff --git a/shell/ev-toolbar.c b/shell/ev-toolbar.c
index e934bad59..8bbeb5a69 100644
--- a/shell/ev-toolbar.c
+++ b/shell/ev-toolbar.c
@@ -299,26 +299,6 @@ ev_toolbar_new (EvWindow *window)
                                          NULL));
 }
 
-gboolean
-ev_toolbar_has_visible_popups (EvToolbar *ev_toolbar)
-{
-        GtkPopover       *popover;
-        EvToolbarPrivate *priv;
-
-        g_return_val_if_fail (EV_IS_TOOLBAR (ev_toolbar), FALSE);
-
-        priv = GET_PRIVATE (ev_toolbar);
-
-        popover = gtk_menu_button_get_popover (GTK_MENU_BUTTON (priv->action_menu_button));
-        if (gtk_widget_get_visible (GTK_WIDGET (popover)))
-                return TRUE;
-
-        if (ev_zoom_action_get_popup_shown (EV_ZOOM_ACTION (priv->zoom_action)))
-                return TRUE;
-
-        return FALSE;
-}
-
 void
 ev_toolbar_action_menu_toggle (EvToolbar *ev_toolbar)
 {
diff --git a/shell/ev-toolbar.h b/shell/ev-toolbar.h
index 432563e75..cb3490f40 100644
--- a/shell/ev-toolbar.h
+++ b/shell/ev-toolbar.h
@@ -51,7 +51,6 @@ struct _EvToolbarClass {
 
 GType         ev_toolbar_get_type           (void);
 GtkWidget    *ev_toolbar_new                (EvWindow *window);
-gboolean      ev_toolbar_has_visible_popups (EvToolbar *ev_toolbar);
 void          ev_toolbar_action_menu_toggle (EvToolbar *ev_toolbar);
 GtkWidget    *ev_toolbar_get_page_selector  (EvToolbar *ev_toolbar);
 void          ev_toolbar_set_mode           (EvToolbar     *ev_toolbar,


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