Re: Gtk-WARNING **: gtk_widget_size_allocate()
- From: muppet <scott asofyet org>
- To: ArtÅras Ålajus <x11 h2o pieva net>
- Cc: gtk-perl-list gnome org
- Subject: Re: Gtk-WARNING **: gtk_widget_size_allocate()
- Date: Sat, 13 Dec 2003 21:35:49 -0500
On Saturday, December 13, 2003, at 07:09 AM, ArtÅras Ålajus wrote:
I probably found a bug. When resizing hpaned to minimal postion it
doesn't stop, but generates warnings like this:
Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget
with width -7 and height 27 at ./gui.pl line 88.
Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget
with width -9 and height 27 at ./gui.pl line 88.
Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget
with width -8 and height 27 at ./gui.pl line 88.
i'm not sure it's actually a bug (at any rate it's not something for
which the bindings would be responsible), but you can make it not
happen by giving the left child a minimum size (with set_size_request)
and telling the paned widget not to shrink that child below its minimum
size.
e.g.
$left_child->set_size_request (150, -1);
$hpaned->child1_shrink (FALSE);
--
muppet <scott at asofyet dot org>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]