projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e822cd
)
get (temporarily) rid of GTK+ debugging messages about negative width and size as...
author
Vadim Zeitlin
<vadim@wxwidgets.org>
Sun, 12 Feb 2006 23:21:55 +0000
(23:21 +0000)
committer
Vadim Zeitlin
<vadim@wxwidgets.org>
Sun, 12 Feb 2006 23:21:55 +0000
(23:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37540
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/gtk/win_gtk.c
patch
|
blob
|
blame
|
history
diff --git
a/src/gtk/win_gtk.c
b/src/gtk/win_gtk.c
index c505270cdcfb8165062cf0fca09ad629c39db71b..4f098ee8eab6d99b90bbae9c542fddb9857d0ade 100644
(file)
--- a/
src/gtk/win_gtk.c
+++ b/
src/gtk/win_gtk.c
@@
-394,6
+394,14
@@
gtk_pizza_set_size (GtkPizza *pizza,
g_return_if_fail (GTK_IS_PIZZA (pizza));
g_return_if_fail (widget != NULL);
+ /* this really shouldn't happen -- but it does, a lot, right now and we
+ can't pass negative values to gtk_widget_set_size_request(), so filter
+ them out here */
+ if ( width < 0 )
+ width = 0;
+ if ( height < 0 )
+ height = 0;
+
children = pizza->children;
while (children)
{