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 693326 - Handle long names better
Handle long names better
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: User Accounts
3.7.x
Other All
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-02-07 13:43 UTC by Debarshi Ray
Modified: 2013-04-26 15:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot (42.34 KB, image/png)
2013-02-07 13:43 UTC, Debarshi Ray
  Details
width_chars, max_width_chars and ellipsize properties (1.57 KB, patch)
2013-03-22 17:08 UTC, Ondrej Holy
needs-work Details | Review
ellipsize long names (1.83 KB, patch)
2013-03-22 17:10 UTC, Ondrej Holy
accepted-commit_now Details | Review
screenshot with ellipsize (43.40 KB, image/png)
2013-03-22 17:10 UTC, Ondrej Holy
  Details
width_chars, max_width_chars and ellipsize properties (8.48 KB, patch)
2013-04-19 09:19 UTC, Ondrej Holy
accepted-commit_now Details | Review

Description Debarshi Ray 2013-02-07 13:43:23 UTC
Created attachment 235399 [details]
Screenshot

While playing with how ellipsizing works in gnome-shell, I stumbled upon this (see screenshot). Maybe we should be wrapping really long names into multiple lines because this increases the horizontal width of the window.
Comment 1 Ondrej Holy 2013-03-22 17:08:49 UTC
Created attachment 239561 [details] [review]
width_chars, max_width_chars and ellipsize properties

Add width_chars, max_width_chars and ellipsize properties for cc-editable-entry.
Comment 2 Ondrej Holy 2013-03-22 17:10:12 UTC
Created attachment 239562 [details] [review]
ellipsize long names

Set width_chars, max_width_chars and ellipsize for names.
Comment 3 Ondrej Holy 2013-03-22 17:10:54 UTC
Created attachment 239563 [details]
screenshot with ellipsize
Comment 4 Allan Day 2013-03-22 17:14:39 UTC
(In reply to comment #3)
> Created an attachment (id=239563) [details]
> screenshot with ellipsize

Looks good!
Comment 5 Thomas Wood 2013-04-12 16:40:56 UTC
Review of attachment 239561 [details] [review]:

I think part of this patch is missing since only the header file is modified here.
Comment 6 Philippe "RzR" Coval 2013-04-16 08:36:36 UTC
yes it looks this is a 2 files patch , where is part 2 ?

Subject: [PATCH 1/2] cc-editable-entry: Add width_chars, max_width_chars and
Comment 7 Ondrej Holy 2013-04-19 09:19:12 UTC
Created attachment 241884 [details] [review]
width_chars, max_width_chars and ellipsize properties

Hopefully there is patch with all changes :-)
Comment 8 Philippe "RzR" Coval 2013-04-19 15:09:00 UTC
Review of attachment 241884 [details] [review]:

Is it actually a 2 files patch ?

(PATCH 1/2) cc-editable-entry: Add width_chars, max_width_chars and ellipsize properties
Comment 9 Bastien Nocera 2013-04-19 15:17:28 UTC
(In reply to comment #8)
> Review of attachment 241884 [details] [review]:

Could you please avoid reviewing and changing the status of patches?

This is especially bad as the part of the subject line that's in brackets will be stripped when it's applied by git, so your question doesn't make sense.
Comment 10 Thomas Wood 2013-04-26 13:39:31 UTC
Review of attachment 241884 [details] [review]:

Looks good to me, please push to master and gnome-3-8 branches.
Comment 11 Thomas Wood 2013-04-26 13:44:17 UTC
Review of attachment 239562 [details] [review]:

Looks fine, please commit to master and gnome-3-8 branches after reviewing the spacing change.

::: panels/user-accounts/data/user-accounts-dialog.ui
@@ +54,3 @@
               <object class="GtkHBox" id="hbox2">
                 <property name="visible">True</property>
+                <property name="spacing">18</property>

Was this change intentional?
Comment 12 Ondrej Holy 2013-04-26 15:23:53 UTC
(In reply to comment #11)
> Review of attachment 239562 [details] [review]:
> 
> Looks fine, please commit to master and gnome-3-8 branches after reviewing the
> spacing change.

I'll commit it soon.

> ::: panels/user-accounts/data/user-accounts-dialog.ui
> @@ +54,3 @@
>                <object class="GtkHBox" id="hbox2">
>                  <property name="visible">True</property>
> +                <property name="spacing">18</property>
> 
> Was this change intentional?

Yes, because if user has really long name, full-name-entry is too wide and there is no spacing between scrolled window and labels...
Comment 13 Ondrej Holy 2013-04-26 15:50:46 UTC
It is commited to the both branches...