Clicking inside the location entry closes the completion window
This commit is contained in:
parent
4110b64ae8
commit
e0a50c47d3
1 changed files with 17 additions and 0 deletions
|
@ -843,6 +843,21 @@ midori_location_action_changed_cb (GtkEntry* entry,
|
|||
katze_assign (location_action->text, g_strdup (gtk_entry_get_text (entry)));
|
||||
}
|
||||
|
||||
static gboolean
|
||||
midori_location_action_button_press_event_cb (GtkEntry* entry,
|
||||
GdkEventKey* event,
|
||||
MidoriLocationAction* action)
|
||||
{
|
||||
if (action->popup && GTK_WIDGET_VISIBLE (action->popup))
|
||||
{
|
||||
midori_location_action_popdown_completion (action);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
midori_location_action_key_press_event_cb (GtkEntry* entry,
|
||||
GdkEventKey* event,
|
||||
|
@ -1434,6 +1449,8 @@ midori_location_action_connect_proxy (GtkAction* action,
|
|||
g_object_connect (child,
|
||||
"signal::changed",
|
||||
midori_location_action_changed_cb, action,
|
||||
"signal::button-press-event",
|
||||
midori_location_action_button_press_event_cb, action,
|
||||
"signal::key-press-event",
|
||||
midori_location_action_key_press_event_cb, action,
|
||||
#if GTK_CHECK_VERSION (2, 19, 3)
|
||||
|
|
Loading…
Reference in a new issue