I agree it probably should be ellipsized in some way. However, the
attached patch would clearly not be acceptable upstream -- there is a
better way to do this with GTK functions.

Could you see if you could rewrite / adjust the patch, and how well it
would work using gtk_label_set_ellipsize() and
gtk_label_set_max_width_chars() ? (see
https://developer.gnome.org/gtk3/unstable/GtkLabel.html for the
documentation on those functions).

It would also be nice if somebody having the bug could send the bug to
the developers of the software by following the instructions at
https://wiki.ubuntu.com/Bugs/Upstream/GNOME. If you have done so, please
tell us the number of the upstream bug (or the link), so we can add a
bugwatch that will inform us about its status. Thanks in advance.

** Tags added: patch-needswork

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager-applet in Ubuntu.
https://bugs.launchpad.net/bugs/1263078

Title:
  Truncate long device description in applet menu

Status in “network-manager-applet” package in Ubuntu:
  Triaged

Bug description:
  With some network interface devices, nma_utils_get_device_description
  could return a very long description string so you'll end up with
  awkwardly wide nm applet menu that spans almost more than half of
  horizontal area on your screen. On small screen device like laptop and
  netbook where screen estate is limited , you don't really want this.

  So it'd be a good idea to truncate the desc string if it's too long.
  I'm proposing the maximum length for the desc string to be 35
  characters before it gets truncated. Also truncation is done in the
  middle so we don't lose the info bit near the end of the desc string.

  I've prepared a patch for that. Please check the patch file that I
  attached.

  Screenshots
  Before: http://i.imgur.com/5KC84X8.png
  After: http://i.imgur.com/FQmGJ20.png

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager-applet/+bug/1263078/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to