[epiphany/history-rewrite-second] Add a EphyBrowseHistory property to EphyHistoryWindow



commit e3d0c349cae048823e486153efab1ee34b696fdb
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Wed Feb 29 09:45:15 2012 +0200

    Add a EphyBrowseHistory property to EphyHistoryWindow

 src/ephy-history-window.c |   17 ++++++++++++++++-
 src/ephy-history-window.h |    1 +
 2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c
index e5d6e6d..71a8378 100644
--- a/src/ephy-history-window.c
+++ b/src/ephy-history-window.c
@@ -97,6 +97,7 @@ static void search_entry_search_cb 	  (GtkWidget *entry,
 struct _EphyHistoryWindowPrivate
 {
 	EphyHistory *history;
+	EphyBrowseHistory *browse_history;
 	GtkWidget *sites_view;
 	GtkWidget *pages_view;
 	EphyNodeFilter *pages_filter;
@@ -117,7 +118,8 @@ struct _EphyHistoryWindowPrivate
 enum
 {
 	PROP_0,
-	PROP_HISTORY
+	PROP_HISTORY,
+	PROP_BROWSE_HISTORY,
 };
 
 static const GtkActionEntry ephy_history_ui_entries [] = {
@@ -503,6 +505,13 @@ ephy_history_window_class_init (EphyHistoryWindowClass *klass)
 							      "Global History",
 							      EPHY_TYPE_HISTORY,
 							      G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_CONSTRUCT_ONLY));
+	g_object_class_install_property (object_class,
+					 PROP_BROWSE_HISTORY,
+					 g_param_spec_object ("browse-history",
+							      "Browse history",
+							      "Browse History",
+							      EPHY_TYPE_BROWSE_HISTORY,
+							      G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_CONSTRUCT_ONLY));
 
 	g_type_class_add_private (object_class, sizeof(EphyHistoryWindowPrivate));
 }
@@ -1361,6 +1370,9 @@ ephy_history_window_set_property (GObject *object,
 	case PROP_HISTORY:
 		editor->priv->history = g_value_get_object (value);
 		break;
+        case PROP_BROWSE_HISTORY:
+          editor->priv->browse_history = g_value_get_object (value);
+          break;
 	default:
 		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
 		break;
@@ -1380,6 +1392,9 @@ ephy_history_window_get_property (GObject *object,
 	case PROP_HISTORY:
 		g_value_set_object (value, editor->priv->history);
 		break;
+        case PROP_BROWSE_HISTORY:
+          g_value_set_object (value, editor->priv->browse_history);
+          break;
 	default:
 		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
 		break;
diff --git a/src/ephy-history-window.h b/src/ephy-history-window.h
index 88ada34..8334605 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-browse-history.h"
 
 G_BEGIN_DECLS
 



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