]> spindle.queued.net Git - midori/commitdiff
Notify when the current item changes
authorChristian Dywan <christian@twotoasts.de>
Fri, 10 Oct 2008 21:00:33 +0000 (23:00 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 10 Oct 2008 21:00:33 +0000 (23:00 +0200)
This fixes the browser not using the chosen
search engine at all.

midori/midori-searchaction.c

index 549c60f25d18a931ce15b97f48d8f44344c6c44a..6d08d1a6cfccd93c5f429b76318e7f3f1a982aa6 100644 (file)
 #include "gtkiconentry.h"
 #include "sokoke.h"
 
-#include <katze/katze.h>
 #include <glib/gi18n.h>
 #include <gdk/gdkkeysyms.h>
-#include <gtk/gtk.h>
 
 struct _MidoriSearchAction
 {
@@ -328,7 +326,7 @@ midori_search_action_create_tool_item (GtkAction* action)
     gtk_widget_show (alignment);
 
     MIDORI_SEARCH_ACTION (action)->last_proxy = GTK_WIDGET (toolitem);
-    return GTK_WIDGET (toolitem);
+    return toolitem;
 }
 
 static void
@@ -667,6 +665,8 @@ midori_search_action_set_current_item (MidoriSearchAction* search_action,
         g_object_ref (item);
     katze_object_assign (search_action->current_item, item);
 
+    g_object_notify (G_OBJECT (search_action), "current-item");
+
     proxies = gtk_action_get_proxies (GTK_ACTION (search_action));
     if (!proxies)
         return;