]> git.saurik.com Git - wxWidgets.git/commitdiff
Wrap the warning suppress of SetSize around #ifndef WX_WARN_ILLEGAL_SETSIZE.
authorMart Raudsepp <leio@gentoo.org>
Wed, 15 Feb 2006 14:26:53 +0000 (14:26 +0000)
committerMart Raudsepp <leio@gentoo.org>
Wed, 15 Feb 2006 14:26:53 +0000 (14:26 +0000)
configure with CFLAGS="-DWX_WARN_ILLEGAL_SETSIZE" when wanting to deal with the problem and therefore see the
warnings.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/win_gtk.c

index 4f098ee8eab6d99b90bbae9c542fddb9857d0ade..85c77d7c025afbf24cb92515faadadea7a3de586 100644 (file)
@@ -394,13 +394,15 @@ gtk_pizza_set_size (GtkPizza   *pizza,
     g_return_if_fail (GTK_IS_PIZZA (pizza));
     g_return_if_fail (widget != NULL);
 
+#ifndef WX_WARN_ILLEGAL_SETSIZE
     /* 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 */
+       can't pass negative values to gtk_widget_set_size_request() without getting
+       a warning printed out, so filter them out here */
     if ( width < 0 )
         width = 0;
     if ( height < 0 )
         height = 0;
+#endif
 
     children = pizza->children;
     while (children)