Only update location combo arrow if there is a history at all
This commit is contained in:
parent
14f0a091f6
commit
0bf27662c5
1 changed files with 9 additions and 3 deletions
|
@ -639,7 +639,12 @@ midori_location_action_toggle_arrow_cb (GtkWidget* widget,
|
|||
static void
|
||||
midori_location_action_toggle_arrow (MidoriLocationAction* location_action)
|
||||
{
|
||||
GSList* proxies = gtk_action_get_proxies (GTK_ACTION (location_action));
|
||||
GSList* proxies;
|
||||
|
||||
if (!location_action->history)
|
||||
return;
|
||||
|
||||
proxies = gtk_action_get_proxies (GTK_ACTION (location_action));
|
||||
for (; proxies != NULL; proxies = g_slist_next (proxies))
|
||||
if (GTK_IS_TOOL_ITEM (proxies->data))
|
||||
{
|
||||
|
@ -1268,6 +1273,7 @@ midori_location_action_connect_proxy (GtkAction* action,
|
|||
renderer, midori_location_entry_render_text_cb, child, NULL);
|
||||
|
||||
gtk_combo_box_set_active (GTK_COMBO_BOX (entry), -1);
|
||||
if (location_action->history)
|
||||
gtk_container_forall (GTK_CONTAINER (entry),
|
||||
(GtkCallback)midori_location_action_toggle_arrow_cb, action);
|
||||
g_signal_connect (entry, "changed",
|
||||
|
|
Loading…
Reference in a new issue