From e6f7200e86782d3fb216617d124024f42ba07721 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Sat, 29 Mar 2003 23:12:34 +0000 Subject: Do not update menus on unselect. Do not update menus on unselect. --- ChangeLog | 11 +++++++++++ src/bookmarks/ephy-bookmarks-editor.c | 32 +++++++++++++------------------- 2 files changed, 24 insertions(+), 19 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8d871ed28..558d954c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2003-03-29 Xan Lopez + + * src/bookmarks/ephy-bookmarks-editor.c: + (cmd_open_bookmarks_in_tabs), (cmd_open_bookmarks_in_browser), + (cmd_bookmark_properties), + (ephy_bookmarks_editor_node_selected_cb), + (keyword_node_selected_cb): + + Do not update menus in element unselection. + Minor fixes. + 2003-03-29 David Bordoley * src/bookmarks/ephy-bookmarks-editor.c: (build_search_box): diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c index ca74696d9..b0bba72fb 100644 --- a/src/bookmarks/ephy-bookmarks-editor.c +++ b/src/bookmarks/ephy-bookmarks-editor.c @@ -233,10 +233,7 @@ cmd_open_bookmarks_in_tabs (EggAction *action, EPHY_NEW_TAB_APPEND|EPHY_NEW_TAB_IN_EXISTING_WINDOW); } - if (selection) - { - g_list_free (selection); - } + g_list_free (selection); } static void @@ -262,10 +259,7 @@ cmd_open_bookmarks_in_browser (EggAction *action, EPHY_NEW_TAB_IN_NEW_WINDOW); } - if (selection) - { - g_list_free (selection); - } + g_list_free (selection); } static void @@ -299,10 +293,7 @@ cmd_bookmark_properties (EggAction *action, gtk_widget_show (GTK_WIDGET (dialog)); } - if (selection) - { - g_list_free (selection); - } + g_list_free (selection); } static void @@ -513,11 +504,14 @@ ephy_bookmarks_editor_node_activated_cb (GtkWidget *view, } static void -ephy_bookmarks_editor_node_selected_cb (GtkWidget *view, +ephy_bookmarks_editor_node_selected_cb (EphyNodeView *view, EphyNode *node, EphyBookmarksEditor *editor) { - ephy_bookmarks_editor_update_menu (editor, node, EPHY_NODE_VIEW (view)); + if (node != NULL) + { + ephy_bookmarks_editor_update_menu (editor, node, view); + } } static void @@ -554,19 +548,19 @@ keyword_node_selected_cb (EphyNodeView *view, EphyNode *node, EphyBookmarksEditor *editor) { + EphyNode *bookmarks; + if (node == NULL) { - ephy_node_view_select_node - (editor->priv->key_view, - ephy_bookmarks_get_bookmarks - (editor->priv->bookmarks)); + bookmarks = ephy_bookmarks_get_bookmarks (editor->priv->bookmarks); + ephy_node_view_select_node (editor->priv->key_view, bookmarks); } else { bookmarks_filter (editor, node); + ephy_bookmarks_editor_update_menu (editor, node, view); } - ephy_bookmarks_editor_update_menu (editor, node, view); } static void -- cgit