[epiphany/wip/history-rewrite: 2/9] Set the history service during history window instantiation
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/history-rewrite: 2/9] Set the history service during history window instantiation
- Date: Tue, 6 Mar 2012 13:53:55 +0000 (UTC)
commit e2ed0e30425524230292a9f1a16bea98956659cb
Author: Claudio Saavedra <csaavedra igalia com>
Date: Mon Aug 29 12:22:17 2011 +0300
Set the history service during history window instantiation
The old history object is kept for now but it will be removed later
src/ephy-history-window.c | 4 +++-
src/ephy-history-window.h | 3 ++-
src/ephy-shell.c | 6 +++++-
3 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c
index 5c4b4ef..7074dd7 100644
--- a/src/ephy-history-window.c
+++ b/src/ephy-history-window.c
@@ -1341,7 +1341,8 @@ ephy_history_window_set_parent (EphyHistoryWindow *ebe,
}
GtkWidget *
-ephy_history_window_new (EphyHistory *history)
+ephy_history_window_new (EphyHistory *history,
+ EphyHistoryService *history_service)
{
EphyHistoryWindow *editor;
@@ -1350,6 +1351,7 @@ ephy_history_window_new (EphyHistory *history)
editor = EPHY_HISTORY_WINDOW (g_object_new
(EPHY_TYPE_HISTORY_WINDOW,
"history", history,
+ "history-service", history_service,
NULL));
ephy_history_window_construct (editor);
diff --git a/src/ephy-history-window.h b/src/ephy-history-window.h
index 88ada34..70c861e 100644
--- a/src/ephy-history-window.h
+++ b/src/ephy-history-window.h
@@ -28,6 +28,7 @@
#include "ephy-node-view.h"
#include "ephy-history.h"
+#include "ephy-history-service.h"
G_BEGIN_DECLS
@@ -55,7 +56,7 @@ typedef struct
GType ephy_history_window_get_type (void);
-GtkWidget *ephy_history_window_new (EphyHistory *history);
+GtkWidget *ephy_history_window_new (EphyHistory *history, EphyHistoryService *history_service);
void ephy_history_window_set_parent (EphyHistoryWindow *ehw,
GtkWidget *window);
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 68da6cd..c9c575f 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -1030,12 +1030,16 @@ GtkWidget *
ephy_shell_get_history_window (EphyShell *shell)
{
EphyHistory *history;
+ EphyHistoryService *service;
if (shell->priv->history_window == NULL) {
history = EPHY_HISTORY
(ephy_embed_shell_get_global_history (embed_shell));
+ service = EPHY_HISTORY_SERVICE
+ (ephy_embed_shell_get_global_history_service (embed_shell));
g_assert (history != NULL);
- shell->priv->history_window = ephy_history_window_new (history);
+ shell->priv->history_window = ephy_history_window_new (history,
+ service);
g_signal_connect (shell->priv->history_window, "show",
G_CALLBACK (toolwindow_show_cb), shell);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]