After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 645514 - Add placeholder-text property to GtkCellrendererText
Add placeholder-text property to GtkCellrendererText
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
3.0.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2011-03-22 11:42 UTC by Carlos Garcia Campos
Modified: 2012-05-04 03:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
cellrenderertext: Add placeholder-text property (6.24 KB, patch)
2011-03-22 11:55 UTC, Carlos Garcia Campos
none Details | Review
cellrenderertext: Add placeholder-text property (6.21 KB, patch)
2012-05-04 03:34 UTC, Matthias Clasen
committed Details | Review

Description Carlos Garcia Campos 2011-03-22 11:42:54 UTC
Now that placeholder text is supported by GtkEntry I think it makes sense to add support for it in editable cell renderers too. For cell renderers it's even more important because it's not obvious when they are editable. As Johannes commented on bug #440963, it could be used by glade that already has a custom implementation for the signal editor.
Comment 1 Carlos Garcia Campos 2011-03-22 11:55:14 UTC
Created attachment 184052 [details] [review]
cellrenderertext: Add placeholder-text property
Comment 2 Matthias Clasen 2012-05-04 03:34:50 UTC
The following fix has been pushed:
a18f018 cellrenderertext: Add placeholder-text property
Comment 3 Matthias Clasen 2012-05-04 03:34:53 UTC
Created attachment 213432 [details] [review]
cellrenderertext: Add placeholder-text property

It works similar to placeholder text in a GtkEntry, if the cell renderer
is editable and it's empty, the placeholder text is displayed.