]> spindle.queued.net Git - midori/commitdiff
Set Hildon input mode to not capitalize automatically in the location
authorChristian Dywan <christian@twotoasts.de>
Sat, 14 Nov 2009 17:14:53 +0000 (18:14 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sat, 14 Nov 2009 21:50:20 +0000 (22:50 +0100)
midori/midori-locationentry.c

index eba3477caf89675c839de3946c191dfb194f07bd..350316823b2371882f737dc5fbe337b05c2e800e 100644 (file)
@@ -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),