Re: Extra properties or accessor for GtkButton



Jody Goldberg <jody gnome org> writes:

> http://bugzilla.gnome.org/show_bug.cgi?id=70961
> 
> The current code hard codes stock icons as being centered within the
> button.  This is unpleasant when aligning button.  There are 2
> simple solutions
> 
> 1) Add stock_[xy]_alignment properties to gtkbutton.
> 2) Add a gtkbutton_get_stock_alignment
> 
> The former is obviously more controlled than the later.  Would
> either patch be accepted ? are there any preferences for which
> approach to take ?

 * We are in API freeze
 * This is a cosmetic problem
 * It can be worked around with some hacks (probably the best thing
   is to use a size group.)

If we keep adding API, we'll never get 2.0 out. I've put your bug
on the 2.2 milestones,

As for solutions, I'm not sure I really understand your proposals.
I'd guess that a floats-valued X aligment property is probably
correct... we use floats for alignment. Y alignment doesn't seem
useful to me.

Regards,
                                        Owen
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]