diff options
author | Tomasz Sterna <tomek@xiaoka.com> | 2011-11-14 22:47:15 +0100 |
---|---|---|
committer | Tomasz Sterna <tomek@xiaoka.com> | 2011-11-14 22:47:15 +0100 |
commit | af70bedd19d18a65d526fac9d14554d715177573 (patch) | |
tree | fd2a921d88ac06d9e7d809f91ec97e7258725076 | |
parent | c3daf37ac5b4918eed31ed88782bbb04b33b80eb (diff) |
Merged fixlivesearch.patch
-rw-r--r-- | hildon/hildon-live-search.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/hildon/hildon-live-search.c b/hildon/hildon-live-search.c index fe209fe..70b2f21 100644 --- a/hildon/hildon-live-search.c +++ b/hildon/hildon-live-search.c @@ -768,12 +768,14 @@ close_button_clicked_cb (GtkWidget *button, gtk_widget_hide (GTK_WIDGET (user_data)); } +#ifdef MAEMO_GTK static HildonGtkInputMode filter_input_mode (HildonGtkInputMode imode) { return imode & ~(HILDON_GTK_INPUT_MODE_AUTOCAP | HILDON_GTK_INPUT_MODE_DICTIONARY); } +#endif static void hildon_live_search_init (HildonLiveSearch *self) @@ -785,8 +787,9 @@ hildon_live_search_init (HildonLiveSearch *self) GtkToolItem *close_button; GtkToolItem *entry_container; GtkWidget *entry_hbox; +#ifdef MAEMO_GTK HildonGtkInputMode imode; - +#endif self->priv = priv = GET_PRIVATE (self); gtk_toolbar_set_style (GTK_TOOLBAR (self), GTK_TOOLBAR_ICONS); @@ -814,12 +817,13 @@ hildon_live_search_init (HildonLiveSearch *self) priv->entry = hildon_entry_new (HILDON_SIZE_FINGER_HEIGHT); +#ifdef MAEMO_GTK /* Unset the autocap and dictionary input flags from the HildonEntry. */ imode = hildon_gtk_entry_get_input_mode (GTK_ENTRY (priv->entry)); hildon_gtk_entry_set_input_mode (GTK_ENTRY (priv->entry), filter_input_mode (imode)); - +#endif gtk_widget_set_name (GTK_WIDGET (priv->entry), "HildonLiveSearchEntry"); |