Re: [gtk-list] Re: window creation and resizing problem



Anders Melchiorsen <and@kampsax.dtu.dk> writes:
> 	gtk_widget_set_uposition(GTK_WIDGET(window), x, y);
> 	gtk_widget_set_usize(GTK_WIDGET(window), w, h);
> 	gtk_widget_show(GTK_WIDGET(window));
> 

I would use gtk_window_set_default_size() for the size, because
_usize() will enforce a minimum size on the user (unless you call
set_policy() to turn on allow_shrink, but that's broken).

Havoc



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