maemo.org Bugzilla – Bug 4673
hildon_entry_set_placeholder() should be in GtkEntry.
Last modified: 2009-08-21 12:28:11 UTC
You need to log in before you can comment on or make changes to this bug.
HildonEntry seems to just add a placeholder feature to GtkEntry. That should be added upstream to GTK+, probably as a property: http://maemo.org/api_refs/5.0/beta/hildon/HildonEntry.html#hildon-entry-set-placeholder As well as making porting easier, by avoiding the need to ifdef a choice of GtkEntry or HildonEntry, this would make gtk_entry_get/set_text() ignore the placeholder text.
Likewise for HildonTextView: http://maemo.org/api_refs/5.0/beta/hildon/HildonTextView.html
This is actually a GTK+ bug. We would drop the placeholder feature if this could be added to GTK+. I filed a bug upstream with an initial implementation (#566741) but it was duplicated and the original bug (#440963) seems to be a source of disagreements that won't be resolved anytime soon. An implementation in maemo-gtk would probably be the way to go.
Well done. The links, for convenience: http://bugzilla.gnome.org/show_bug.cgi?id=566741 marked as a duplicate of: http://bugzilla.gnome.org/show_bug.cgi?id=440963 I replied there, trying to move it along. It would have been nice if the Hildon developers had done that. It seems possible to get it accepted upstream.
Placeholder text API has been added to GtkEntry and GtkTextView in Maemo-GTK. Resolving as FIXED.
Apart from the changes in Maemo-gtk, the changes to Hildon are here: https://git.maemo.org/projects/hildon/gitweb?p=hildon;a=commitdiff;h=612b3ad6022252538dcdafe78f63a36a7d1b9335
...and this is also internally integrated into builds now.
Great. So what's the (documented) purpose of HildonEntry and HildonTextView now, rather than their GTK+ equivalents?