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 417145 - Long note titles make tray menu too wide
Long note titles make tray menu too wide
Status: RESOLVED FIXED
Product: tomboy
Classification: Applications
Component: General
unspecified
Other All
: Normal minor
: ---
Assigned To: Tomboy Maintainers
Tomboy Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-03-11 17:27 UTC by Tommi Asiala
Modified: 2009-10-04 00:48 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description Tommi Asiala 2007-03-11 17:27:58 UTC
Please describe the problem:
Very long titles make the tray menu too wide to fit screen. The right most part is not shown. Nobody will probably make so long titles on desktop computers that this will show but it might be an issue with portable devices.

Steps to reproduce:
1. Make a new note
2. Add a very long note title to it
3. Open tray menu


Actual results:
Menu becomes too wide and doesn't show the whole title and pins.

Expected results:
Long titles could be truncated on the tray to make the menu to fit screen

Does this happen every time?


Other information:
Comment 1 Sandy Armstrong 2007-04-24 01:57:37 UTC
I guess we need to truncate long titles in the menu.
Comment 2 Michael Monreal 2007-09-18 12:09:12 UTC
I just noticed this while playing with the new tasks addin. I never did long notes names but I created a long task name and saw the same thing happen. I think the tomboy tray popup should have a max width; 300px should be enough, else it looks very "empty" if you have one long title and the rest is normal sized.
Comment 3 Sandy Armstrong 2008-01-13 15:00:08 UTC
Anyone want to patch this?  :-)
Comment 4 Jeff Tickle 2008-02-22 17:54:18 UTC
It's fixed in svn r1872 with a hardcoded max length of 40 characters.  We may get a bug report that this number is too high or too low or should be based on screen resolution... on the other hand, we may not, so let's just see how it goes!
Comment 5 Jeff Tickle 2008-02-22 18:47:31 UTC
Note that r1875 removed the gconf key added in 1872... apparently they don't like you committing string changes during String Freeze (go figure), and that's what happens when you add a new gconf key.  There's a misnomer in my previous comment, that is, the 40 character limit was not "hardcoded", but was the default value of the gconf key.  What is currently in subversion gets rid of the string changes and hardcodes the value into Tray.cs.
Comment 6 Boyd Timothy 2008-02-22 22:50:34 UTC
Marking this for 0.11.x so we get the gconf stuff put back in.
Comment 7 Boyd Timothy 2008-02-26 19:15:51 UTC
Setting the default assignee and QA Contact to "tomboy-maint@gnome.bugs".
Comment 8 Alex Graveley 2008-04-30 21:16:30 UTC
Just FYI, I bumped the truncation length to 100 from 40 in change #1991.  Still not sure if this is long enough, but 100 characters seems enough to identify individual notes, whereas 45 was not for me... things like recurring meeting notes where the date was appended to the title could not be disambiguated.  We may want to bump this to 150 or 200 by default.
Comment 9 Benjamin Podszun 2009-04-29 12:26:54 UTC
What's the status here? Why is this not "fixed"? What's missing?
Comment 10 Sandy Armstrong 2009-04-29 14:10:45 UTC
(In reply to comment #9)
> What's the status here? Why is this not "fixed"? What's missing?
> 

Might want to double-check that this is configurable by a key that's in the GConf Schema
Comment 11 Sandy Armstrong 2009-06-16 15:38:13 UTC
Yup, just waiting on a gconf schema pref.
Comment 12 Sandy Armstrong 2009-08-24 06:08:09 UTC
Fixed.