aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-history-window.c
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2012-02-29 15:45:15 +0800
committerXan Lopez <xan@igalia.com>2012-03-07 04:49:46 +0800
commita6bc39ed6369c703cc4d5d8e35d91bb5d4aa48c6 (patch)
tree9f9e7a7935dca4bedccc855177f454819be73292 /src/ephy-history-window.c
parentb280014f2b9d3fa94854dbf9c2d7ad4b155fd5d8 (diff)
downloadgsoc2013-epiphany-a6bc39ed6369c703cc4d5d8e35d91bb5d4aa48c6.tar.gz
gsoc2013-epiphany-a6bc39ed6369c703cc4d5d8e35d91bb5d4aa48c6.tar.zst
gsoc2013-epiphany-a6bc39ed6369c703cc4d5d8e35d91bb5d4aa48c6.zip
Add a EphyHistoryService property to EphyHistoryWindow
Diffstat (limited to 'src/ephy-history-window.c')
-rw-r--r--src/ephy-history-window.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c
index e5d6e6d79..5c4b4efe1 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;
+ EphyHistoryService *history_service;
GtkWidget *sites_view;
GtkWidget *pages_view;
EphyNodeFilter *pages_filter;
@@ -117,7 +118,8 @@ struct _EphyHistoryWindowPrivate
enum
{
PROP_0,
- PROP_HISTORY
+ PROP_HISTORY,
+ PROP_HISTORY_SERVICE,
};
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_HISTORY_SERVICE,
+ g_param_spec_object ("history-service",
+ "History service",
+ "History Service",
+ EPHY_TYPE_HISTORY_SERVICE,
+ 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_HISTORY_SERVICE:
+ editor->priv->history_service = 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_HISTORY_SERVICE:
+ g_value_set_object (value, editor->priv->history_service);
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;