[epiphany] Move a few EphyShell methods to ephy-private.h



commit dad79f566e60f303a1d7b3078bf07e3491fd1fd0
Author: Xan Lopez <xan igalia com>
Date:   Sat Apr 14 11:43:54 2012 +0200

    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 8926d07..634b5a8 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 04ba38a..707f325 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 1f3b039..8a7757b 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 <gtk/gtk.h>
 
 /* 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 de67993..9c5197c 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 1780a2e..58cdb82 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 c2a7b37..b1c4171 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 <glib.h>
diff --git a/tests/ephy-embed-single-test.c b/tests/ephy-embed-single-test.c
index 856aa33..d0891b0 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 <gtk/gtk.h>
 
diff --git a/tests/ephy-web-view-test.c b/tests/ephy-web-view-test.c
index 5c79718..760ffff 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"
 



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