aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXabier Rodriguez Calvar <xrcalvar@igalia.com>2009-10-21 15:36:38 +0200
committerXabier Rodriguez Calvar <xrcalvar@igalia.com>2009-10-21 15:37:18 +0200
commit10f382a14d24991f0bb6f449f84a37e8ea882ae3 (patch)
treef3dca8b85e8190bce13e42cf6ca33dd52d247008
parent47df9ddbf202cd05c6987abf88f4db0596c5b5cf (diff)
Avoid resetting the same selector in the HildonPickerButton
-rw-r--r--hildon/hildon-picker-button.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hildon/hildon-picker-button.c b/hildon/hildon-picker-button.c
index b57baf5..82a6288 100644
--- a/hildon/hildon-picker-button.c
+++ b/hildon/hildon-picker-button.c
@@ -453,6 +453,10 @@ hildon_picker_button_set_selector (HildonPickerButton * button,
priv = GET_PRIVATE (button);
+ if (priv->selector == (GtkWidget*) selector) {
+ return;
+ }
+
if (priv->selector) {
g_signal_handlers_disconnect_by_func (priv->selector,
hildon_picker_button_selector_selection_changed,