Re: Setting size of SpinButton



Lars Clausen <lrclause cs uiuc edu> writes: 
> I have the exact same problem with GtkMenu, it doesn't like to resize
> itself to accomodate longer items (even when prompted with
> gtk_widget_queue_resize()).  Instead I find the longest item and set that
> as usize, adding a but to allow for border and handle.  Not a pretty sight,
> but better.
> 

You mean with GtkOptionMenu? That's an option menu bug. The workaround
is to add all menu items to the GtkMenu, and _show_ all the menu
items, _before_ calling gtk_option_menu_set_submenu(). Lame, but
works.

Havoc




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