Re: [gtk-list] RE: window sizing with gtk_window_set_usize?
- From: Des Herriott <des ops netcom net uk>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] RE: window sizing with gtk_window_set_usize?
- Date: Thu, 23 Apr 1998 11:13:34 +0100
On Apr 23, Tony Gale wrote:
> Here's a trick which Elrond on IRC gave me. You shouldn't need to
> change the policy with this.
>
> static gint reset_usize(gpointer data)
> {
> gtk_widget_set_usize(GTK_WIDGET(data), 0, 0);
> return FALSE;
> }
>
> gtk_widget_set_usize(GTK_WIDGET(window),
> 640, 400);
> gtk_idle_add(reset_usize, window);
Very cunning! Yes, that worked nicely - thanks a lot. In Perl:
sub reset_usize { shift->set_usize(0, 0); return 0; }
# ...window creation...
$window->set_usize($width, $height);
Gtk->idle_add(sub { reset_usize($window) });
--
Des Herriott
des@ops.netcom.net.uk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]