GNOME Bugzilla – Bug 701515
Having a long contact name makes the user unable to edit contact info
Last modified: 2013-06-04 10:07:25 UTC
If a contact has a long name (30+ characters), the 'Editing <name>' label moves the 'Done' button off-screen on the contact edit window, making it impossible to save modified contact data. For example: 1. Open Contacts 2. Create a contact with the name 'thisisareallyreallylongnamethatwillbreakthecontacteditsettingsmenu' 4. Save the name 5. Try to edit the user 6. Observe the scrolling of the 'Editing <name>' label and that the 'Done' button (top right) is not present because of the long name.
Created attachment 245918 [details] [review] Ellipsize long names in contact editing menu This patch demos a workaround for the problem by simple truncating names longer than the length threshold and appending an ellipsis. This seems like a bit of a hack, and a better solution would be to set PANGO_ELLIPSIZE_END with gtk_label_set_ellipsize() on the GtkLabel, however I had problems trying to then ensure that the label expanded horizontally and requested the correct amount of space, rather than just displaying the '...' characters. Any suggestions would be appreciated.
(In reply to comment #1) > Created an attachment (id=245918) [details] [review] > Ellipsize long names in contact editing menu > > This patch demos a workaround for the problem by simple truncating names longer > than the length threshold and appending an ellipsis. This seems like a bit of a > hack, and a better solution would be to set PANGO_ELLIPSIZE_END with > gtk_label_set_ellipsize() on the GtkLabel, however I had problems trying to > then ensure that the label expanded horizontally and requested the correct > amount of space, rather than just displaying the '...' characters. Any > suggestions would be appreciated. The thing was the ToolItem around the label wasn't set to expand. Fixed in here: https://git.gnome.org/browse/gnome-contacts/commit/?h=gnome-3-8&id=817f6c6f904876335f67b0b1acd802e7ec53ad1e
Ah ok thanks for the catch and quick fix :-)