Re: GtkExpander and resizeable dialogs



On Sun, 2005-10-02 at 14:38 +0100, Luke Biddell wrote:
I am using a GtkExpander in a GtkDialog and I'm having problems with
the dialog sizing. Once the expander has been expanded, I can't get
the dialog to shrink back to it's original size unless I set the
dialog to be non-resizeable.

I've tried calling gtk_window_resize on the dialog and passing in the
original size when I get the expanded signal. That doesn't work.

It seems to me that the dialog's minimum size is being changed as I
can force the size back to the original size using
gtk_widget_set_size_request. However, doing this means I've got to
manage all the window sizes so if a user resizes the dialog,
everything works.

Does anyone have any experience of this? I don't want to make my
dialog non-resizeable but it seems the only way to get GtkExpander to
work properly.

Thanks

Luke

Hi,
some times ago I made a patch to put Sound-Juicer track list inside a
GtkExpander. Sound-Juicer uses a resizeable window and the patch handled
expanding/shrinking, maybe you can give it a look. Tha patch was not
accepted, but it is on bugzilla.gnome.org, the link is:
http://bugzilla.gnome.org/show_bug.cgi?id=311669

Luca




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