Notify when the current item changes
This fixes the browser not using the chosen search engine at all.
This commit is contained in:
parent
06aa03c6a6
commit
52c9eca92a
1 changed files with 3 additions and 3 deletions
|
@ -14,10 +14,8 @@
|
|||
#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;
|
||||
|
|
Loading…
Reference in a new issue