summaryrefslogtreecommitdiff
path: root/src/ephy-pages-view.h
diff options
context:
space:
mode:
authorChristopher Davis <brainblasted@disroot.org>2019-04-18 21:57:33 -0400
committerJan-Michael Brummer <jan.brummer@tabos.org>2019-04-20 14:33:27 +0000
commitc21974067ca3696093acc6efd52c1d20b91aec72 (patch)
tree29015d287568803a227ab288d89eaafc6f25e22f /src/ephy-pages-view.h
parent2ff9aa4bed215ccf21b1c674ba75f61ae0ef3ddd (diff)
downloadepiphany-c21974067ca3696093acc6efd52c1d20b91aec72.tar.gz
ephy-window: Use a page instead of popover for mobile tabs
As per https://gitlab.gnome.org/Teams/Design/app-mockups/blob/master/web/web.png, on mobile tabs should use a separate page from the main view.
Diffstat (limited to 'src/ephy-pages-view.h')
-rw-r--r--src/ephy-pages-view.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/ephy-pages-view.h b/src/ephy-pages-view.h
new file mode 100644
index 000000000..6ccb720a0
--- /dev/null
+++ b/src/ephy-pages-view.h
@@ -0,0 +1,43 @@
+/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/*
+ * Copyright © 2019 Christopher Davis <christopherdavis@gnome.org>
+ *
+ * This file is part of Epiphany.
+ *
+ * Epiphany is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Epiphany is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Epiphany. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+
+#include <gtk/gtk.h>
+
+#include "ephy-adaptive-mode.h"
+#include "ephy-notebook.h"
+
+G_BEGIN_DECLS
+
+#define EPHY_TYPE_PAGES_VIEW (ephy_pages_view_get_type ())
+
+G_DECLARE_FINAL_TYPE (EphyPagesView, ephy_pages_view, EPHY, PAGES_VIEW, GtkScrolledWindow)
+
+EphyPagesView *ephy_pages_view_new (void);
+
+EphyNotebook *ephy_pages_view_get_notebook (EphyPagesView *view);
+void ephy_pages_view_set_notebook (EphyPagesView *view,
+ EphyNotebook *notebook);
+
+void ephy_pages_view_set_adaptive_mode (EphyPagesView *self,
+ EphyAdaptiveMode adaptive_mode);
+
+G_END_DECLS