This patch changes gtk/gtkbutton.c to fix the following not *quite* error, but
certainly inconsistency: In gtk_button_add and gtk_button_remove,
gtk_widget_queue_resize was being called on the widget that had been added,
but only if it was visible. It is much more logical to queue_resize the
*container*, as the size of the container may also be dependent on the child.
Note this will also automatically do the queue_resize for the child.
Also, while I was at it, patched gtk/gtkbutton.h so that the arguments to the
type check functions are properly encapsulated in parentheses, just to keep
any order of precedence errors from happening.
The patch was generated against gtk+-0.99.5 as distributed on
ftp://ftp.gimp.org
Enjoy
Deon Ramsey (Draco)
-----------------------------------------------------------------------------
Deon Ramsey (general Librarygopher) may be reached as:
Work: Private:
[email protected] [email protected]
WWW:
<A HREF="
http://www.dfki.uni-kl.de/~ramsey/">Deon Ramsey</A>
Or via Snail-Mail: Deon Ramsey
Koenigstr. 11
67655 Kaiserslautern
Germany
Program (Pro'-gram) n. A magic spell cast over a computer, causing it to
turn one's input into error messages.
There are many intelligent species in the Universe.
They are all owned by cats.
Be discreet, be polite, but be yourself. -- Per Aspera