[Xfce4-commits] <midori:master> Set Hildon input mode to not capitalize automatically in the location

Christian Dywan noreply at xfce.org
Sat Nov 14 22:56:05 CET 2009


Updating branch refs/heads/master
         to ab7e2196560af3f8e35a71962c70bc8c5ee7348b (commit)
       from f212c1542baf302c59c1ce47d25d40aaf4a9479b (commit)

commit ab7e2196560af3f8e35a71962c70bc8c5ee7348b
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sat Nov 14 18:14:53 2009 +0100

    Set Hildon input mode to not capitalize automatically in the location

 midori/midori-locationentry.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/midori/midori-locationentry.c b/midori/midori-locationentry.c
index eba3477..3503168 100644
--- a/midori/midori-locationentry.c
+++ b/midori/midori-locationentry.c
@@ -369,6 +369,9 @@ static void
 midori_location_entry_init (MidoriLocationEntry* location_entry)
 {
     GtkWidget* entry;
+    #if HAVE_HILDON
+    HildonGtkInputMode mode;
+    #endif
 
     /* We want the widget to have appears-as-list applied */
     gtk_rc_parse_string ("style \"midori-location-entry-style\" {\n"
@@ -379,7 +382,11 @@ midori_location_entry_init (MidoriLocationEntry* location_entry)
     location_entry->progress = 0.0;
 
     entry = gtk_icon_entry_new ();
-    #if !HAVE_HILDON
+    #if HAVE_HILDON
+    mode = hildon_gtk_entry_get_input_mode (GTK_ENTRY (entry));
+    mode &= ~HILDON_GTK_INPUT_MODE_AUTOCAP;
+    hildon_gtk_entry_set_input_mode (GTK_ENTRY (entry), mode);
+    #else
     gtk_icon_entry_set_icon_from_stock (GTK_ICON_ENTRY (entry),
          GTK_ICON_ENTRY_PRIMARY, GTK_STOCK_FILE);
     gtk_icon_entry_set_icon_highlight (GTK_ICON_ENTRY (entry),



More information about the Xfce4-commits mailing list