From 4842406f27f9bb4374951d009405ec57c15c0727 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 13 Mar 2011 18:32:08 +0100 Subject: [PATCH] Update the current item after re-ordering search engines --- midori/midori-searchaction.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/midori/midori-searchaction.c b/midori/midori-searchaction.c index 4a94bb61..3206526c 100644 --- a/midori/midori-searchaction.c +++ b/midori/midori-searchaction.c @@ -1123,6 +1123,8 @@ midori_search_action_dialog_move_up_cb (GtkWidget* widget, i = katze_array_get_item_index (search_engines, item); katze_array_move_item (search_engines, item, i - 1); + /* If the index of the current item has changed it needs to be reset */ + g_object_notify (G_OBJECT (search_action), "current-item"); } gtk_tree_path_free (path); } @@ -1153,6 +1155,8 @@ midori_search_action_dialog_move_down_cb (GtkWidget* widget, i = katze_array_get_item_index (search_engines, item); katze_array_move_item (search_engines, item, i + 1); + /* If the index of the current item has changed it needs to be reset */ + g_object_notify (G_OBJECT (search_action), "current-item"); } } }