* src/hildon-touch-selector-entry.c:
(hildon_touch_selector_entry_changed): Check if there is no text
selected before setting the entry text.
Fixes: NB#88576
+2008-09-16 Claudio Saavedra <csaavedra@igalia.com>
+
+ * src/hildon-touch-selector-entry.c:
+ (hildon_touch_selector_entry_changed): Check if there is no text
+ selected before setting the entry text.
+ Fixes: NB#88576
+
2008-09-15 Alberto Garcia <agarcia@igalia.com>
* src/hildon-touch-selector.h
priv = HILDON_TOUCH_SELECTOR_ENTRY_GET_PRIVATE (selector);
text = hildon_touch_selector_get_text_from_model (HILDON_TOUCH_SELECTOR_ENTRY (selector));
- gtk_entry_set_text (GTK_ENTRY (priv->entry), text);
- gtk_editable_select_region (GTK_EDITABLE (priv->entry), 0, -1);
- g_free (text);
+ if (text != NULL) {
+ gtk_entry_set_text (GTK_ENTRY (priv->entry), text);
+ gtk_editable_select_region (GTK_EDITABLE (priv->entry), 0, -1);
+ g_free (text);
+ }
}
static void