[epiphany] action-bar: Allow to set the notebook



commit b1c1925b96e8c7ec3745b6d521b58f50456f3507
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Tue Nov 13 13:57:04 2018 +0100

    action-bar: Allow to set the notebook
    
    This will be used to show the opened pages in narrow mode.

 src/ephy-action-bar.c | 7 +++++++
 src/ephy-action-bar.h | 3 +++
 2 files changed, 10 insertions(+)
---
diff --git a/src/ephy-action-bar.c b/src/ephy-action-bar.c
index d3f028c38..b801f7466 100644
--- a/src/ephy-action-bar.c
+++ b/src/ephy-action-bar.c
@@ -179,6 +179,13 @@ ephy_action_bar_get_action_bar_end (EphyActionBar *action_bar)
   return action_bar->action_bar_end;
 }
 
+void
+ephy_action_bar_set_notebook (EphyActionBar *action_bar,
+                              EphyNotebook  *notebook)
+{
+  ephy_pages_popover_set_notebook (action_bar->pages_popover, notebook);
+}
+
 void
 ephy_action_bar_set_adaptive_mode (EphyActionBar    *action_bar,
                                    EphyAdaptiveMode  adaptive_mode)
diff --git a/src/ephy-action-bar.h b/src/ephy-action-bar.h
index 390e92007..da94137af 100644
--- a/src/ephy-action-bar.h
+++ b/src/ephy-action-bar.h
@@ -26,6 +26,7 @@
 #include "ephy-action-bar-end.h"
 #include "ephy-action-bar-start.h"
 #include "ephy-adaptive-mode.h"
+#include "ephy-notebook.h"
 #include "ephy-window.h"
 
 G_BEGIN_DECLS
@@ -37,6 +38,8 @@ G_DECLARE_FINAL_TYPE (EphyActionBar, ephy_action_bar, EPHY, ACTION_BAR, GtkRevea
 EphyActionBar      *ephy_action_bar_new                  (EphyWindow *window);
 EphyActionBarStart *ephy_action_bar_get_action_bar_start (EphyActionBar *action_bar);
 EphyActionBarEnd   *ephy_action_bar_get_action_bar_end   (EphyActionBar *action_bar);
+void                ephy_action_bar_set_notebook         (EphyActionBar *action_bar,
+                                                          EphyNotebook  *notebook);
 void                ephy_action_bar_set_adaptive_mode    (EphyActionBar    *action_bar,
                                                           EphyAdaptiveMode  adaptive_mode);
 


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