Documentation updates
[hildon] / hildon / hildon-touch-selector-entry.c
index af2f3fc..87663b7 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * 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
@@ -121,11 +121,15 @@ hildon_touch_selector_entry_class_init (HildonTouchSelectorEntryClass *klass)
   /**
    * 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,
@@ -149,8 +153,8 @@ hildon_touch_selector_entry_print_func (HildonTouchSelector * selector, gpointer
 
   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)) {
@@ -381,20 +385,20 @@ entry_on_text_changed (GtkEditable * editable,
   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;
@@ -472,7 +476,7 @@ hildon_touch_selector_entry_changed (HildonTouchSelector * selector,
 
   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);
   }