Re: [Vala] maemo5 hildon input mode



2010/2/8 Jiří Zárevúcky <zarevucky jiri gmail com>:
Martin DeMello píše v Po 08. 02. 2010 v 22:26 +0530:
I'm trying to disable Maemo's autocapitalisation in a Gtk.Entry field.
Maemo 5 adds a "hildon-input-mode" property to Gtk.Entry [
http://maemo.org/api_refs/5.0/5.0-final/gtk/GtkEntry.html], but I
can't find any way to access it from Vala, either from a Gtk.Entry or
a Hildon.Entry.

You can try using this method:

http://www.valadoc.org/gobject-2.0/GLib.Object.get.html

Thanks, that worked beautifully. For anyone googling this up, the exact code is:

 var input  = new Hildon.Entry (Hildon.SizeType.AUTO);
 input.set("hildon-input-mode", Hildon.GtkInputMode.FULL);
 // refer to hildon-1.vapi for the full enum

martin



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]