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 702763 - ellipsize placeholder text
ellipsize placeholder text
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkEntry
unspecified
Other All
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2013-06-20 17:43 UTC by Jonh Wendell
Modified: 2013-06-24 09:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (1.43 KB, patch)
2013-06-20 17:44 UTC, Jonh Wendell
none Details | Review
proposed patch, v2 (1.28 KB, patch)
2013-06-21 12:36 UTC, Jonh Wendell
none Details | Review

Description Jonh Wendell 2013-06-20 17:43:02 UTC
the placeholder string is truncated when there's no room for it in entry's width.

one solution for this is to ellipsize it.
Comment 1 Jonh Wendell 2013-06-20 17:44:59 UTC
Created attachment 247367 [details] [review]
proposed patch

this is my proposed solution.

it could be optional by adding a property like 'ellipsize-placeholder', but I'm not sure what's the best alternative.
Comment 2 Jonh Wendell 2013-06-21 12:36:58 UTC
Created attachment 247429 [details] [review]
proposed patch, v2

removed the check for rtl texts
Comment 3 Jonh Wendell 2013-06-21 12:45:32 UTC
pushed into master
Comment 4 Philippe "RzR" Coval 2013-06-24 08:08:41 UTC
Thanks, shouldnt this be also pushed to gtk-3-8 branch too 

Regards
Comment 5 Philippe "RzR" Coval 2013-06-24 09:38:07 UTC
I confirm it does work and apply fine on it