[Bugs] #610 NORM: right click on journal items
SugarLabs Bugs
bugtracker-noreply at sugarlabs.org
Sun Mar 22 08:50:25 EDT 2009
#610: right click on journal items
----------------------------+-----------------------------------------------
Reporter: IwikiwI | Owner: tomeu
Type: enhancement | Status: new
Priority: Normal | Milestone: Unspecified by Release Team
Component: journal | Version: Unspecified
Severity: Minor | Keywords: right click journal
Distribution: Fedora | Status_field: Unconfirmed
----------------------------+-----------------------------------------------
When right clicking on a journal item, if the name happens to be n
characters long (These n being beyond screen size) the menu extends beyond
the screen, and no menu items are displayed.
I have a temporary fix:
if metadata.has_key('title'):
#Hack limits to specified number of characters, and saves screen
from going all the way!
screen=gtk.gdk.Screen()
width = screen.get_width()
if width >= 800 and width <= 1200:
char_length = 15
elif width > 1200 and width <= 1650:
char_length = 20
else:
char_lenghth = 25
if len(metadata['title'])>char_length:
title = metadata['title'][0:char_length]+"..."
else:
title = metadata['title']
any suggestions for a good permanent fix?
--
Ticket URL: <http://dev.sugarlabs.org/ticket/610>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list