/*
- * 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, &start, &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 ) */
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);
gtk_entry_set_max_length (GTK_ENTRY (priv->end_entry), length);
}
-/* Public functions */
-
/**
* hildon_range_editor_get_type:
*
* @Returns : GType of #HildonRangeEditor
*
*/
-GType
+GType G_GNUC_CONST
hildon_range_editor_get_type (void)
{
static GType editor_type = 0;