From dad79f566e60f303a1d7b3078bf07e3491fd1fd0 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Sat, 14 Apr 2012 11:43:54 +0200 Subject: Move a few EphyShell methods to ephy-private.h These are clearly not meant to be used outside of Epiphany. --- src/Makefile.am | 1 + src/ephy-main.c | 1 + src/ephy-private.h | 28 ++++++++++++++++++++++------ src/ephy-shell.c | 1 + src/ephy-shell.h | 13 ------------- tests/ephy-download-test.c | 1 + tests/ephy-embed-single-test.c | 1 + tests/ephy-web-view-test.c | 1 + 8 files changed, 28 insertions(+), 19 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 8926d077e..634b5a8a7 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -158,6 +158,7 @@ epiphany_CPPFLAGS = \ -I$(top_srcdir)/embed \ -I$(top_srcdir)/lib \ -I$(top_srcdir)/lib/egg \ + -I$(top_srcdir)/lib/history \ -I$(top_srcdir)/src/bookmarks \ -DDATADIR=\""$(datadir)"\" \ -DGNOMELOCALEDIR=\"$(datadir)/locale\" \ diff --git a/src/ephy-main.c b/src/ephy-main.c index 04ba38a3c..707f32532 100644 --- a/src/ephy-main.c +++ b/src/ephy-main.c @@ -25,6 +25,7 @@ #include "ephy-debug.h" #include "ephy-embed-prefs.h" #include "ephy-file-helpers.h" +#include "ephy-private.h" #include "ephy-session.h" #include "ephy-settings.h" #include "ephy-shell.h" diff --git a/src/ephy-private.h b/src/ephy-private.h index 1f3b0390a..8a7757ba3 100644 --- a/src/ephy-private.h +++ b/src/ephy-private.h @@ -29,22 +29,38 @@ #include "ephy-embed-event.h" #include "ephy-embed-private.h" #include "ephy-location-controller.h" +#include "ephy-shell.h" #include "ephy-window.h" #include /* EphyWindow */ -GtkActionGroup *ephy_window_get_toolbar_action_group (EphyWindow *window); +GtkActionGroup *ephy_window_get_toolbar_action_group (EphyWindow *window); -EphyLocationController *ephy_window_get_location_controller (EphyWindow *window); +EphyLocationController *ephy_window_get_location_controller (EphyWindow *window); -EphyEmbedEvent *ephy_window_get_context_event (EphyWindow *window); +EphyEmbedEvent *ephy_window_get_context_event (EphyWindow *window); -GtkWidget *ephy_window_get_find_toolbar (EphyWindow *window); +GtkWidget *ephy_window_get_find_toolbar (EphyWindow *window); -void ephy_window_set_location (EphyWindow *window, - const char *address); +void ephy_window_set_location (EphyWindow *window, + const char *address); + + +/* EphyShell */ + +void ephy_shell_set_startup_context (EphyShell *shell, + EphyShellStartupContext *ctx); + +EphyShellStartupContext *ephy_shell_startup_context_new (EphyStartupFlags startup_flags, + char *bookmarks_filename, + char *session_filename, + char *bookmark_url, + char **arguments, + guint32 user_time); + +void _ephy_shell_create_instance (EphyEmbedShellMode mode); #endif diff --git a/src/ephy-shell.c b/src/ephy-shell.c index de6799313..9c5197c08 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -36,6 +36,7 @@ #include "ephy-home-action.h" #include "ephy-lockdown.h" #include "ephy-prefs.h" +#include "ephy-private.h" #include "ephy-profile-utils.h" #include "ephy-session.h" #include "ephy-settings.h" diff --git a/src/ephy-shell.h b/src/ephy-shell.h index 1780a2e4d..58cdb823a 100644 --- a/src/ephy-shell.h +++ b/src/ephy-shell.h @@ -140,19 +140,6 @@ GObject *ephy_shell_get_pdm_dialog (EphyShell *shell); GObject *ephy_shell_get_prefs_dialog (EphyShell *shell); -void ephy_shell_set_startup_context (EphyShell *shell, - EphyShellStartupContext *ctx); - -EphyShellStartupContext *ephy_shell_startup_context_new (EphyStartupFlags startup_flags, - char *bookmarks_filename, - char *session_filename, - char *bookmark_url, - char **arguments, - guint32 user_time); - -/* private API */ -void _ephy_shell_create_instance (EphyEmbedShellMode mode); - G_END_DECLS #endif diff --git a/tests/ephy-download-test.c b/tests/ephy-download-test.c index c2a7b3748..b1c4171bf 100644 --- a/tests/ephy-download-test.c +++ b/tests/ephy-download-test.c @@ -27,6 +27,7 @@ #include "ephy-download.h" #include "ephy-embed-prefs.h" #include "ephy-file-helpers.h" +#include "ephy-private.h" #include "ephy-shell.h" #include diff --git a/tests/ephy-embed-single-test.c b/tests/ephy-embed-single-test.c index 856aa33dd..d0891b0f9 100644 --- a/tests/ephy-embed-single-test.c +++ b/tests/ephy-embed-single-test.c @@ -27,6 +27,7 @@ #include "ephy-embed-single.h" #include "ephy-embed-prefs.h" #include "ephy-file-helpers.h" +#include "ephy-private.h" #include "ephy-shell.h" #include diff --git a/tests/ephy-web-view-test.c b/tests/ephy-web-view-test.c index 5c797186b..760ffff57 100644 --- a/tests/ephy-web-view-test.c +++ b/tests/ephy-web-view-test.c @@ -27,6 +27,7 @@ #include "ephy-embed-prefs.h" #include "ephy-embed-private.h" #include "ephy-file-helpers.h" +#include "ephy-private.h" #include "ephy-shell.h" #include "ephy-web-view.h" -- cgit