Fix gtk-doc packaging
[hildon] / src / hildon-range-editor.c
index 98d3f34..c60f8ea 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * This file is part of hildon-libs
+ * This file is a part of hildon
  *
  * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
  *
 
 /**
  * SECTION:hildon-range-editor
- * @short_description: A widget is used to ask bounds of a range
+ * @short_description: A widget is used to ask bounds of a range.
  *
  * HidlonRangeEditor allows entering a pair of integers, e.g. the lower
  * and higher bounds of a range. A minimum and maximum can also be set
  * for the bounds.
+ * 
+ * <example>
+ * <programlisting>
+ *      range_editor = hildon_range_editor_new ();
+ *      hildon_range_editor_set_limits (editor, start, end );
+ *      hildon_range_editor_get_range (editor, &amp;start, &amp;end);
+ * </programlisting>
+ * </example>
  */
 
 #ifdef                                          HAVE_CONFIG_H
 #include                                        <glib/gprintf.h>
 #include                                        <string.h>
 #include                                        <stdlib.h>
-#include                                        "hildon-input-mode-hint.h"
 #include                                        "hildon-banner.h"
 #include                                        <libintl.h>
 #include                                        "hildon-range-editor-private.h"
 
 #define                                         _(string) \
-                                                dgettext(PACKAGE, string)
+                                                dgettext("hildon-libs", string)
 
 /* Alignment in entry box ( 0 = left, 1 = right ) */
 
@@ -322,10 +329,10 @@ hildon_range_editor_init                        (HildonRangeEditor *editor)
             G_CALLBACK (hildon_range_editor_entry_changed), editor);
 
     g_object_set (G_OBJECT (priv->start_entry),
-            "input-mode", HILDON_INPUT_MODE_HINT_NUMERIC, NULL);
+            "input-mode", HILDON_GTK_INPUT_MODE_NUMERIC, NULL);
 
     g_object_set( G_OBJECT (priv->end_entry),
-            "input-mode", HILDON_INPUT_MODE_HINT_NUMERIC, NULL);
+            "input-mode", HILDON_GTK_INPUT_MODE_NUMERIC, NULL);
 
     gtk_widget_show (priv->start_entry);
     gtk_widget_show (priv->end_entry);
@@ -789,8 +796,6 @@ hildon_range_editor_refresh_widths              (HildonRangeEditorPrivate *priv)
     gtk_entry_set_max_length (GTK_ENTRY (priv->end_entry), length);
 }
 
-/* Public functions */
-
 /**
  * hildon_range_editor_get_type:
  * 
@@ -799,7 +804,7 @@ hildon_range_editor_refresh_widths              (HildonRangeEditorPrivate *priv)
  * @Returns : GType of #HildonRangeEditor
  * 
  */
-GType
+GType G_GNUC_CONST
 hildon_range_editor_get_type                    (void)
 {
     static GType editor_type = 0;