/*
* This file is a part of hildon
*
- * Copyright (C) 2008 Nokia Corporation.
+ * Copyright (C) 2008, 2009 Nokia Corporation.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
/**
* HildonTouchSelectorEntry:text-column:
*
- * Deprecated: now this property is in HildonTouchSelectorColumn use
- * hildon_touch_selector_entry_set_text_column() and
- * hildon_touch_selector_entry_get_text_column() to manage this.
+ * A column in the data source model to get the strings from.
*
- * Since: 2.2
+ * This property is deprecated. Use HildonTouchSelectorColumn:text-column
+ * instead. Use hildon_touch_selector_entry_set_text_column() and
+ * hildon_touch_selector_entry_get_text_column() to manage it.
+ *
+ * Deprecated: use HildonTouchSelectorColumn:text-column instead
+ *
+ * Since: maemo 2.2
**/
g_object_class_install_property (G_OBJECT_CLASS (klass),
PROP_TEXT_COLUMN,
priv = HILDON_TOUCH_SELECTOR_ENTRY_GET_PRIVATE (selector);
- if (*(hildon_entry_get_text (HILDON_ENTRY (priv->entry))) != '\0') {
- text = g_strdup (hildon_entry_get_text (HILDON_ENTRY (priv->entry)));
+ if (*(gtk_entry_get_text (GTK_ENTRY (priv->entry))) != '\0') {
+ text = g_strdup (gtk_entry_get_text (GTK_ENTRY (priv->entry)));
} else {
model = hildon_touch_selector_get_model (selector, 0);
if (hildon_touch_selector_get_selected (selector, 0, &iter)) {
HildonTouchSelectorEntryPrivate *priv;
GtkTreeModel *model;
GtkTreeIter iter;
- HildonEntry *entry;
+ GtkEntry *entry;
const gchar *prefix;
gchar *text;
gboolean found = FALSE;
gint text_column = -1;
- entry = HILDON_ENTRY (editable);
+ entry = GTK_ENTRY (editable);
selector = HILDON_TOUCH_SELECTOR (userdata);
priv = HILDON_TOUCH_SELECTOR_ENTRY_GET_PRIVATE (selector);
text_column =
hildon_touch_selector_entry_get_text_column (HILDON_TOUCH_SELECTOR_ENTRY (selector));
- prefix = hildon_entry_get_text (entry);
+ prefix = gtk_entry_get_text (entry);
if (prefix[0] == '\0') {
return;
text = hildon_touch_selector_get_text_from_model (HILDON_TOUCH_SELECTOR_ENTRY (selector));
if (text != NULL) {
- hildon_entry_set_text (HILDON_ENTRY (priv->entry), text);
+ gtk_entry_set_text (GTK_ENTRY (priv->entry), text);
gtk_editable_select_region (GTK_EDITABLE (priv->entry), 0, -1);
g_free (text);
}