[epiphany] notebook: Allow to get pages menu



commit 863bb91832f7785975eae828da088a411dad771c
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Tue Nov 13 13:41:43 2018 +0100

    notebook: Allow to get pages menu
    
    This will allow to have another pages menu in narrow mode.

 src/ephy-notebook.c | 8 ++++++++
 src/ephy-notebook.h | 2 ++
 2 files changed, 10 insertions(+)
---
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index e06d6f9e8..798ed8346 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -1040,3 +1040,11 @@ ephy_notebook_prev_page (EphyNotebook *notebook)
       gtk_notebook_set_current_page (GTK_NOTEBOOK (notebook), -1);
   }
 }
+
+GMenu *
+ephy_notebook_get_pages_menu (EphyNotebook *notebook)
+{
+  g_assert (EPHY_IS_NOTEBOOK (notebook));
+
+  return notebook->tab_menu;
+}
diff --git a/src/ephy-notebook.h b/src/ephy-notebook.h
index f92b4decc..cdd586d52 100644
--- a/src/ephy-notebook.h
+++ b/src/ephy-notebook.h
@@ -45,4 +45,6 @@ void            ephy_notebook_next_page         (EphyNotebook *notebook);
 
 void            ephy_notebook_prev_page         (EphyNotebook *notebook);
 
+GMenu          *ephy_notebook_get_pages_menu    (EphyNotebook *notebook);
+
 G_END_DECLS


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