[epiphany/history-rewrite] Set the history object on history window instantiation
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/history-rewrite] Set the history object on history window instantiation
- Date: Thu, 1 Sep 2011 16:47:59 +0000 (UTC)
commit 762c347510f967ce847e0f98a285709dfa45f7d5
Author: Claudio Saavedra <csaavedra igalia com>
Date: Mon Aug 29 12:22:17 2011 +0300
Set the history object on 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 | 2 +-
src/ephy-shell.c | 6 +++++-
3 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c
index d99f317..ad0ee8a 100644
--- a/src/ephy-history-window.c
+++ b/src/ephy-history-window.c
@@ -1345,7 +1345,8 @@ ephy_history_window_set_parent (EphyHistoryWindow *ebe,
}
GtkWidget *
-ephy_history_window_new (EphyHistory *history)
+ephy_history_window_new (EphyHistory *history,
+ EphyBrowseHistory *b_history)
{
EphyHistoryWindow *editor;
@@ -1354,6 +1355,7 @@ ephy_history_window_new (EphyHistory *history)
editor = EPHY_HISTORY_WINDOW (g_object_new
(EPHY_TYPE_HISTORY_WINDOW,
"history", history,
+ "browse-history", b_history,
NULL));
ephy_history_window_construct (editor);
diff --git a/src/ephy-history-window.h b/src/ephy-history-window.h
index 8334605..c56d65d 100644
--- a/src/ephy-history-window.h
+++ b/src/ephy-history-window.h
@@ -56,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, EphyBrowseHistory *b_history);
void ephy_history_window_set_parent (EphyHistoryWindow *ehw,
GtkWidget *window);
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index f5759d4..f074622 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -983,12 +983,16 @@ GtkWidget *
ephy_shell_get_history_window (EphyShell *shell)
{
EphyHistory *history;
+ EphyBrowseHistory *b_history;
if (shell->priv->history_window == NULL) {
history = EPHY_HISTORY
(ephy_embed_shell_get_global_history (embed_shell));
+ b_history = EPHY_BROWSE_HISTORY
+ (ephy_embed_shell_get_global_browse_history (embed_shell));
g_assert (history != NULL);
- shell->priv->history_window = ephy_history_window_new (history);
+ shell->priv->history_window = ephy_history_window_new (history,
+ b_history);
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]