aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-history-window.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-11-11 22:17:24 +0800
committerChristian Persch <chpe@src.gnome.org>2004-11-11 22:17:24 +0800
commit3307a35bc76131d03e392f4e87a9baddc3b3c883 (patch)
tree57bfaf008c0fda4e902d1ec035c3190a07207a4d /src/ephy-history-window.c
parent30511d4441c2f5238737ac57dc165b00e558942c (diff)
downloadgsoc2013-epiphany-3307a35bc76131d03e392f4e87a9baddc3b3c883.tar
gsoc2013-epiphany-3307a35bc76131d03e392f4e87a9baddc3b3c883.tar.gz
gsoc2013-epiphany-3307a35bc76131d03e392f4e87a9baddc3b3c883.tar.bz2
gsoc2013-epiphany-3307a35bc76131d03e392f4e87a9baddc3b3c883.tar.lz
gsoc2013-epiphany-3307a35bc76131d03e392f4e87a9baddc3b3c883.tar.xz
gsoc2013-epiphany-3307a35bc76131d03e392f4e87a9baddc3b3c883.tar.zst
gsoc2013-epiphany-3307a35bc76131d03e392f4e87a9baddc3b3c883.zip
Implement history deletion on per-site basis. Fixes bug #116609.
2004-11-11 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-history.c: (remove_pages_from_host_cb), (connect_page_removed_from_host), (ephy_history_get_host): * src/ephy-history-window.c: (cmd_delete), (ephy_history_window_construct): * src/ephy-window.c: (ephy_window_fullscreen): Implement history deletion on per-site basis. Fixes bug #116609.
Diffstat (limited to 'src/ephy-history-window.c')
-rw-r--r--src/ephy-history-window.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c
index a3f53a064..d8796c9be 100644
--- a/src/ephy-history-window.c
+++ b/src/ephy-history-window.c
@@ -65,6 +65,9 @@
#include "ephy-session.h"
#include "ephy-favicon-cache.h"
#include "eel-gconf-extensions.h"
+#include "ephy-node.h"
+#include "ephy-node-common.h"
+#include "ephy-node-view.h"
static GtkTargetEntry page_drag_types [] =
{
@@ -448,6 +451,23 @@ cmd_delete (GtkAction *action,
{
ephy_node_view_remove (EPHY_NODE_VIEW (editor->priv->pages_view));
}
+ else if (ephy_node_view_is_target (EPHY_NODE_VIEW (editor->priv->sites_view)))
+ {
+ EphyNodePriority priority;
+ GList *selected;
+ EphyNode *node;
+
+ selected = ephy_node_view_get_selection (EPHY_NODE_VIEW (editor->priv->sites_view));
+ node = selected->data;
+ priority = ephy_node_get_property_int (node, EPHY_NODE_KEYWORD_PROP_PRIORITY);
+
+ if (priority == -1) priority = EPHY_NODE_NORMAL_PRIORITY;
+
+ if (priority == EPHY_NODE_NORMAL_PRIORITY)
+ {
+ ephy_node_view_remove (EPHY_NODE_VIEW (editor->priv->sites_view));
+ }
+ }
}
static void
@@ -1259,6 +1279,10 @@ ephy_history_window_construct (EphyHistoryWindow *editor)
"node_selected",
G_CALLBACK (site_node_selected_cb),
editor);
+ g_signal_connect (G_OBJECT (sites_view),
+ "key_press_event",
+ G_CALLBACK (key_pressed_cb),
+ editor);
g_signal_connect (G_OBJECT (selection),
"changed",
G_CALLBACK (view_selection_changed_cb),