[Xfce4-commits] <midori:master> Update the current item after re-ordering search engines

Christian Dywan noreply at xfce.org
Sun Mar 13 20:28:01 CET 2011


Updating branch refs/heads/master
         to 4842406f27f9bb4374951d009405ec57c15c0727 (commit)
       from f2b5e82ce473fd6c4f5e418bdaed8975732a8350 (commit)

commit 4842406f27f9bb4374951d009405ec57c15c0727
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sun Mar 13 18:32:08 2011 +0100

    Update the current item after re-ordering search engines

 midori/midori-searchaction.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/midori/midori-searchaction.c b/midori/midori-searchaction.c
index 4a94bb6..3206526 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");
         }
     }
 }



More information about the Xfce4-commits mailing list