diff options
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-history.c | 20 | ||||
-rw-r--r-- | embed/ephy-history.h | 3 |
2 files changed, 22 insertions, 1 deletions
diff --git a/embed/ephy-history.c b/embed/ephy-history.c index c1f7e2aa4..056d04c13 100644 --- a/embed/ephy-history.c +++ b/embed/ephy-history.c @@ -21,6 +21,7 @@ #include "ephy-file-helpers.h" #include "ephy-autocompletion-source.h" #include "ephy-debug.h" +#include "ephy-node-view.h" #include <time.h> #include <string.h> @@ -372,6 +373,8 @@ periodic_save_cb (EphyHistory *eh) static void ephy_history_init (EphyHistory *eb) { + GValue value = { 0, }; + eb->priv = g_new0 (EphyHistoryPrivate, 1); eb->priv->xml_file = g_build_filename (ephy_dot_dir (), @@ -391,6 +394,21 @@ ephy_history_init (EphyHistory *eb) /* Pages */ eb->priv->pages = ephy_node_new_with_id (PAGES_NODE_ID); ephy_node_ref (eb->priv->pages); + g_value_init (&value, G_TYPE_STRING); + g_value_set_string (&value, _("All")); + ephy_node_set_property (eb->priv->pages, + EPHY_NODE_PAGE_PROP_LOCATION, + &value); + ephy_node_set_property (eb->priv->pages, + EPHY_NODE_PAGE_PROP_TITLE, + &value); + g_value_unset (&value); + g_value_init (&value, G_TYPE_INT); + g_value_set_int (&value, EPHY_NODE_VIEW_ALL_PRIORITY); + ephy_node_set_property (eb->priv->pages, + EPHY_NODE_PAGE_PROP_PRIORITY, + &value); + g_value_unset (&value); g_signal_connect_object (G_OBJECT (eb->priv->pages), "child_added", G_CALLBACK (pages_added_cb), @@ -416,6 +434,8 @@ ephy_history_init (EphyHistory *eb) G_OBJECT (eb), 0); + ephy_node_add_child (eb->priv->hosts, eb->priv->pages); + ephy_history_load (eb); ephy_history_emit_data_changed (eb); diff --git a/embed/ephy-history.h b/embed/ephy-history.h index 4bb9c14b1..ccddbec67 100644 --- a/embed/ephy-history.h +++ b/embed/ephy-history.h @@ -43,7 +43,8 @@ enum EPHY_NODE_PAGE_PROP_VISITS = 4, EPHY_NODE_PAGE_PROP_LAST_VISIT = 5, EPHY_NODE_PAGE_PROP_FIRST_VISIT = 6, - EPHY_NODE_PAGE_PROP_HOST_ID = 7 + EPHY_NODE_PAGE_PROP_HOST_ID = 7, + EPHY_NODE_PAGE_PROP_PRIORITY = 8 }; struct EphyHistory |