Updating branch refs/heads/master
to 672b7ab70a61ad5b5833cfadb3109c3912e6cc59 (commit)
from a888a802ecac385e7cbf125d374d5b4e7ab45661 (commit)
commit 672b7ab70a61ad5b5833cfadb3109c3912e6cc59
Author: Alexander Butenko <[email protected]>
Date: Tue Aug 24 23:50:47 2010 +0200
Protect proxy combo box notifications against recursion
This can happen when switching between custom and other elements.
katze/katze-utils.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/katze/katze-utils.c b/katze/katze-utils.c
index dc7f794..8e98ef4 100644
--- a/katze/katze-utils.c
+++ b/katze/katze-utils.c
@@ -247,10 +247,14 @@ proxy_combo_box_changed_cb (GtkComboBox* button,
}
else if (value != custom_value && GTK_IS_ENTRY (child))
{
+ g_signal_handlers_block_by_func (
+ button, proxy_combo_box_changed_cb, object);
/* Force the combo to change the item again */
gtk_widget_destroy (child);
gtk_combo_box_set_active (button, value + 1);
gtk_combo_box_set_active (button, value);
+ g_signal_handlers_unblock_by_func (
+ button, proxy_combo_box_changed_cb, object);
}
}
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits