GnoMenu does not use the X, Y cordinates when centering a label text

Bug #542249 reported by technoshaun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GnoMenu
Confirmed
High
Unassigned

Bug Description

Okay I was remaking a menu to meet GnoMenu 2.5 coding standards and was trying to center a "whoami" text label. However, instead of centering from the X, Y cordinates in the XML code (which should define the top and left margines for the label) it centered on the start-menu.png size.

Changed in gnomenu:
importance: Undecided → High
Revision history for this message
Helder Fraga (whise) wrote :

why does it work on other themes and not on yours?

Revision history for this message
Helder Fraga (whise) wrote :

can you send me the theme ?

Revision history for this message
Helder Fraga (whise) wrote :

well i have some bad news,

unfortunatly this is the best way that labels can actually work with text alignment, short version : gtk labels dont have their own window so without a container they will expand indefinatly so there is no way to actually get the "center" of the label.

if you notice buttons have a fixed width set to their image so setting alligment to right is automatic, we cant do this with labels

Revision history for this message
technoshaun (shaun-marolf) wrote :

Well is there a way we can define a container?

Revision history for this message
Helder Fraga (whise) wrote :

we would have to define the width (and height) manually, do you think its worth it?

Revision history for this message
technoshaun (shaun-marolf) wrote : Re: [Bug 542249] Re: GnoMenu does not use the X, Y cordinates when centering a label text

On Sat, 2010-03-20 at 13:26 +0000, whise wrote:
> we would have to define the width (and height) manually, do you think
> its worth it?
>
Yes because it will allow expansion of theme looks.

Changed in gnomenu:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.