]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/win_gtk.c
The return types for enter/leave-notify-event and focus-in/out-event handlers are...
[wxWidgets.git] / src / gtk / win_gtk.c
index c505270cdcfb8165062cf0fca09ad629c39db71b..4f098ee8eab6d99b90bbae9c542fddb9857d0ade 100644 (file)
@@ -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)
     {