From af70bedd19d18a65d526fac9d14554d715177573 Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Mon, 14 Nov 2011 22:47:15 +0100 Subject: Merged fixlivesearch.patch --- hildon/hildon-live-search.c | 8 ++++++-- 1 file 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"); -- cgit v1.2.3-18-g5258