aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-history.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-04-18 02:34:38 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-04-18 02:34:38 +0800
commitf4aaa4442027d3078cc2809a0c9db2d5b4e48d85 (patch)
treedb01f8e47d598f4f971aa0fe6a40d6acacefec09 /embed/ephy-history.c
parent868e9739e1a2273ebe6f668cd28cc0b9eec50c2d (diff)
downloadgsoc2013-epiphany-f4aaa4442027d3078cc2809a0c9db2d5b4e48d85.tar
gsoc2013-epiphany-f4aaa4442027d3078cc2809a0c9db2d5b4e48d85.tar.gz
gsoc2013-epiphany-f4aaa4442027d3078cc2809a0c9db2d5b4e48d85.tar.bz2
gsoc2013-epiphany-f4aaa4442027d3078cc2809a0c9db2d5b4e48d85.tar.lz
gsoc2013-epiphany-f4aaa4442027d3078cc2809a0c9db2d5b4e48d85.tar.xz
gsoc2013-epiphany-f4aaa4442027d3078cc2809a0c9db2d5b4e48d85.tar.zst
gsoc2013-epiphany-f4aaa4442027d3078cc2809a0c9db2d5b4e48d85.zip
New history dialog implementation. More similar to bookmarks. Yeah it
2003-04-17 Marco Pesenti Gritti <marco@it.gnome.org> * data/ui/Makefile.am: * embed/ephy-history.c: (ephy_history_init): * embed/ephy-history.h: * lib/widgets/ephy-tree-model-node.c: (ephy_tree_model_node_get_value): * src/Makefile.am: * src/ephy-shell.c: (ephy_shell_init), (ephy_shell_finalize), (ephy_shell_show_bookmarks_editor), (history_window_hide_cb), (ephy_shell_show_history_window): * src/ephy-shell.h: * src/ephy-window.c: (ephy_window_finalize), (update_embed_dialogs), (ephy_window_get_find_dialog): * src/ephy-window.h: * src/window-commands.c: (window_cmd_go_history): New history dialog implementation. More similar to bookmarks. Yeah it still sucks ... but the hard part is done.
Diffstat (limited to 'embed/ephy-history.c')
-rw-r--r--embed/ephy-history.c20
1 files changed, 20 insertions, 0 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);