[Xfce4-commits] <midori:master> Only update location combo arrow if there is a history at all
Christian Dywan
noreply at xfce.org
Sun Feb 7 17:20:02 CET 2010
Updating branch refs/heads/master
to 0bf27662c5c5d0f90e46ac33dab5136740d8c4ae (commit)
from 14f0a091f63d558ff1ac99bc199f35b217a95184 (commit)
commit 0bf27662c5c5d0f90e46ac33dab5136740d8c4ae
Author: Christian Dywan <christian at twotoasts.de>
Date: Sun Feb 7 16:38:10 2010 +0100
Only update location combo arrow if there is a history at all
midori/midori-locationaction.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c
index 354d645..6193443 100644
--- a/midori/midori-locationaction.c
+++ b/midori/midori-locationaction.c
@@ -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,8 +1273,9 @@ 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);
- gtk_container_forall (GTK_CONTAINER (entry),
- (GtkCallback)midori_location_action_toggle_arrow_cb, action);
+ if (location_action->history)
+ gtk_container_forall (GTK_CONTAINER (entry),
+ (GtkCallback)midori_location_action_toggle_arrow_cb, action);
g_signal_connect (entry, "changed",
G_CALLBACK (midori_location_action_entry_changed_cb), action);
g_signal_connect (entry, "popup",
More information about the Xfce4-commits
mailing list