diff options
author | Xan Lopez <xan@igalia.com> | 2012-01-20 18:57:36 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-01-20 18:57:36 +0800 |
commit | 92946fbb88977b544903982c3bb19f5423e3bdbd (patch) | |
tree | 438ea7dccd83184572e07cc58a98e09d2705ef6a /src | |
parent | c204b24e6014a42498fa710fa8b47df7a6990fd6 (diff) | |
download | gsoc2013-epiphany-92946fbb88977b544903982c3bb19f5423e3bdbd.tar gsoc2013-epiphany-92946fbb88977b544903982c3bb19f5423e3bdbd.tar.gz gsoc2013-epiphany-92946fbb88977b544903982c3bb19f5423e3bdbd.tar.bz2 gsoc2013-epiphany-92946fbb88977b544903982c3bb19f5423e3bdbd.tar.lz gsoc2013-epiphany-92946fbb88977b544903982c3bb19f5423e3bdbd.tar.xz gsoc2013-epiphany-92946fbb88977b544903982c3bb19f5423e3bdbd.tar.zst gsoc2013-epiphany-92946fbb88977b544903982c3bb19f5423e3bdbd.zip |
Add a ephy-private.h header
This should hold methods needed by Epiphany internally but that we do
not want to export. Only a couple of them so far, but we should
probably add a lot more.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 1 | ||||
-rw-r--r-- | src/ephy-lockdown.c | 10 | ||||
-rw-r--r-- | src/ephy-private.h | 40 | ||||
-rw-r--r-- | src/ephy-toolbar.c | 1 | ||||
-rw-r--r-- | src/ephy-window.c | 1 | ||||
-rw-r--r-- | src/ephy-window.h | 4 |
6 files changed, 48 insertions, 9 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index a92de5cbc..d6bf77fab 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -28,6 +28,7 @@ NOINST_H_FILES = \ ephy-navigation-history-action.h \ ephy-page-menu-action.h \ ephy-password-info.h \ + ephy-private.h \ ephy-toolbar.h \ ephy-window-action.h \ languages.h \ diff --git a/src/ephy-lockdown.c b/src/ephy-lockdown.c index 5a2dc982f..0d0360758 100644 --- a/src/ephy-lockdown.c +++ b/src/ephy-lockdown.c @@ -21,20 +21,20 @@ */ #include "config.h" +#include "ephy-lockdown.h" #include "ephy-action-helper.h" +#include "ephy-debug.h" #include "ephy-embed-container.h" #include "ephy-embed-shell.h" #include "ephy-embed-utils.h" -#include "ephy-web-view.h" -#include "ephy-lockdown.h" #include "ephy-extension.h" -#include "ephy-settings.h" #include "ephy-prefs.h" -#include "ephy-debug.h" +#include "ephy-private.h" +#include "ephy-settings.h" +#include "ephy-web-view.h" #include <gtk/gtk.h> - #include <string.h> #define LOCKDOWN_FLAG 1 << 8 diff --git a/src/ephy-private.h b/src/ephy-private.h new file mode 100644 index 000000000..f8d0e2c8f --- /dev/null +++ b/src/ephy-private.h @@ -0,0 +1,40 @@ +/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* + * Copyright © 2012 Igalia S.L. + * + * This program 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 2, or (at your option) + * any later version. + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) +#error "Only <epiphany/epiphany.h> can be included directly." +#endif + +#ifndef EPHY_PRIVATE_H +#define EPHY_PRIVATE_H + +#include "ephy-location-controller.h" +#include "ephy-window.h" + +#include <gtk/gtk.h> + +/* EphyWindow */ + +GtkActionGroup *ephy_window_get_toolbar_action_group (EphyWindow *window); + +EphyLocationController *ephy_window_get_location_controller (EphyWindow *window); + +#endif + diff --git a/src/ephy-toolbar.c b/src/ephy-toolbar.c index 75f7ab520..6e10753ea 100644 --- a/src/ephy-toolbar.c +++ b/src/ephy-toolbar.c @@ -23,6 +23,7 @@ #include "ephy-location-entry.h" #include "ephy-middle-clickable-button.h" +#include "ephy-private.h" G_DEFINE_TYPE (EphyToolbar, ephy_toolbar, GTK_TYPE_TOOLBAR) diff --git a/src/ephy-window.c b/src/ephy-window.c index 88825f1db..1c53fcbf0 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -48,6 +48,7 @@ #include "ephy-notebook.h" #include "ephy-page-menu-action.h" #include "ephy-prefs.h" +#include "ephy-private.h" #include "ephy-settings.h" #include "ephy-shell.h" #include "ephy-state.h" diff --git a/src/ephy-window.h b/src/ephy-window.h index dc5c27fb8..0bbd7e717 100644 --- a/src/ephy-window.h +++ b/src/ephy-window.h @@ -84,10 +84,6 @@ EphyEmbedEvent *ephy_window_get_context_event (EphyWindow *window); void ephy_window_set_downloads_box_visibility (EphyWindow *window, gboolean show); -GtkActionGroup *ephy_window_get_toolbar_action_group (EphyWindow *window); - -EphyLocationController *ephy_window_get_location_controller (EphyWindow *window); - G_END_DECLS #endif |