From 4d4808cdc6c565dbdefea90b567b3efe9718c5c4 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 23 Jul 2004 10:49:39 +0000 Subject: Do not remove the topic when rename is cancelled. 2004-07-23 Marco Pesenti Gritti * lib/widgets/ephy-node-view.c: (cell_renderer_edited), (renderer_editing_canceled_cb), (ephy_node_view_init), (ephy_node_view_edit): * lib/widgets/ephy-node-view.h: * src/bookmarks/ephy-bookmarks-editor.c: (cmd_add_topic), (cmd_rename): * src/bookmarks/ephy-topics-selector.c: (ephy_topics_selector_new_topic): Do not remove the topic when rename is cancelled. --- src/bookmarks/ephy-bookmarks-editor.c | 6 +++--- src/bookmarks/ephy-topics-selector.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c index 26f657154..98b6adf63 100644 --- a/src/bookmarks/ephy-bookmarks-editor.c +++ b/src/bookmarks/ephy-bookmarks-editor.c @@ -286,7 +286,7 @@ cmd_add_topic (GtkAction *action, node = ephy_bookmarks_add_keyword (editor->priv->bookmarks, _("Type a topic")); ephy_node_view_select_node (EPHY_NODE_VIEW (editor->priv->key_view), node); - ephy_node_view_edit (EPHY_NODE_VIEW (editor->priv->key_view)); + ephy_node_view_edit (EPHY_NODE_VIEW (editor->priv->key_view), TRUE); add_text_renderer_monitor (editor); } @@ -303,11 +303,11 @@ cmd_rename (GtkAction *action, { if (ephy_node_view_is_target (EPHY_NODE_VIEW (editor->priv->bm_view))) { - ephy_node_view_edit (EPHY_NODE_VIEW (editor->priv->bm_view)); + ephy_node_view_edit (EPHY_NODE_VIEW (editor->priv->bm_view), FALSE); } else if (ephy_node_view_is_target (EPHY_NODE_VIEW (editor->priv->key_view))) { - ephy_node_view_edit (EPHY_NODE_VIEW (editor->priv->key_view)); + ephy_node_view_edit (EPHY_NODE_VIEW (editor->priv->key_view), FALSE); } add_text_renderer_monitor (editor); } diff --git a/src/bookmarks/ephy-topics-selector.c b/src/bookmarks/ephy-topics-selector.c index ac8113a44..1a100f5a2 100644 --- a/src/bookmarks/ephy-topics-selector.c +++ b/src/bookmarks/ephy-topics-selector.c @@ -291,7 +291,7 @@ ephy_topics_selector_new_topic (EphyTopicsSelector *selector) node = ephy_bookmarks_add_keyword (selector->priv->bookmarks, _("Type a topic")); ephy_node_view_select_node (EPHY_NODE_VIEW (selector), node); - ephy_node_view_edit (EPHY_NODE_VIEW (selector)); + ephy_node_view_edit (EPHY_NODE_VIEW (selector), TRUE); } static void -- cgit v1.2.3