diff options
Diffstat (limited to 'hildon/hildon-touch-selector-entry.c')
-rw-r--r-- | hildon/hildon-touch-selector-entry.c | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/hildon/hildon-touch-selector-entry.c b/hildon/hildon-touch-selector-entry.c index 8a7bb5d..8d1b705 100644 --- a/hildon/hildon-touch-selector-entry.c +++ b/hildon/hildon-touch-selector-entry.c @@ -225,9 +225,6 @@ hildon_touch_selector_entry_init (HildonTouchSelectorEntry *self) { HildonTouchSelectorEntryPrivate *priv; GtkEntryCompletion *completion; -#ifdef MAEMO_GTK - HildonGtkInputMode input_mode; -#endif priv = HILDON_TOUCH_SELECTOR_ENTRY_GET_PRIVATE (self); @@ -235,16 +232,6 @@ hildon_touch_selector_entry_init (HildonTouchSelectorEntry *self) priv->entry = hildon_entry_new (HILDON_SIZE_FINGER_HEIGHT); gtk_entry_set_activates_default (GTK_ENTRY (priv->entry), TRUE); -#ifdef MAEMO_GTK - input_mode = hildon_gtk_entry_get_input_mode (GTK_ENTRY (priv->entry)); - - /* Disable unsupported input modes. */ - input_mode &= ~HILDON_GTK_INPUT_MODE_MULTILINE; - input_mode &= ~HILDON_GTK_INPUT_MODE_INVISIBLE; - input_mode &= ~HILDON_GTK_INPUT_MODE_DICTIONARY; - - hildon_gtk_entry_set_input_mode (GTK_ENTRY (priv->entry), input_mode); -#endif completion = gtk_entry_completion_new (); gtk_entry_completion_set_inline_completion (completion, TRUE); @@ -386,63 +373,6 @@ hildon_touch_selector_entry_get_text_column (HildonTouchSelectorEntry *selector) return text_column; } -#ifdef MAEMO_GTK -/** - * hildon_touch_selector_entry_set_input_mode: - * @selector: a #HildonTouchSelectorEntry - * @input_mode: #HildonGtkInputMode mask - * - * Sets the input mode to be used in the #GtkEntry in @selector. See hildon_gtk_entry_set_input_mode() - * for details. - * - * It must be noted that not all input modes are available for the - * entry in @selector. In particular, - * %HILDON_GTK_INPUT_MODE_MULTILINE, %HILDON_GTK_INPUT_MODE_INVISIBLE, - * %HILDON_GTK_INPUT_MODE_DICTIONARY are disabled, since these are irrelevant - * for #HildonTouchSelectorEntry. - * - * Since: 2.2 - **/ -void -hildon_touch_selector_entry_set_input_mode (HildonTouchSelectorEntry * selector, - HildonGtkInputMode input_mode) -{ - HildonTouchSelectorEntryPrivate *priv; - - g_return_if_fail (HILDON_IS_TOUCH_SELECTOR_ENTRY (selector)); - g_return_if_fail (!(input_mode & (HILDON_GTK_INPUT_MODE_MULTILINE | - HILDON_GTK_INPUT_MODE_INVISIBLE | - HILDON_GTK_INPUT_MODE_DICTIONARY))); - - priv = HILDON_TOUCH_SELECTOR_ENTRY_GET_PRIVATE (selector); - - hildon_gtk_entry_set_input_mode (GTK_ENTRY (priv->entry), input_mode); -} - -/** - * hildon_touch_selector_entry_get_input_mode: - * @selector: a #HildonTouchSelectorEntry - * - * Gets the input mode used in the #GtkEntry in @selector. See hildon_gtk_entry_get_input_mode() - * for details. - * - * Returns: a mask of #HildonGtkInputMode - * - * Since: 2.2 - **/ -HildonGtkInputMode -hildon_touch_selector_entry_get_input_mode (HildonTouchSelectorEntry * selector) -{ - HildonTouchSelectorEntryPrivate *priv; - - g_return_val_if_fail (HILDON_IS_TOUCH_SELECTOR_ENTRY (selector), HILDON_GTK_INPUT_MODE_ALPHA); - - priv = HILDON_TOUCH_SELECTOR_ENTRY_GET_PRIVATE (selector); - - return hildon_gtk_entry_get_input_mode (GTK_ENTRY (priv->entry)); -} -#endif - static void entry_on_text_changed (GtkEditable * editable, gpointer userdata) |