]> git.saurik.com Git - wxWidgets.git/commitdiff
build fix for GTK+ 2.12 and earlier
authorPaul Cornett <paulcor@bullseye.com>
Wed, 7 Jan 2009 16:59:00 +0000 (16:59 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Wed, 7 Jan 2009 16:59:00 +0000 (16:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/win_gtk.cpp

index 5f37b12dead833bd3e2a296980881982bdbc8f14..42ea74144eaed1d65b6bea0afd7d21f707d749f1 100644 (file)
@@ -78,8 +78,8 @@ static void size_allocate(GtkWidget* widget, GtkAllocation* alloc)
                 // otherwise they will not be erased/redrawn properly
                 const GtkAllocation& a1 = widget->allocation;
                 const GtkAllocation& a2 = *alloc;
-                const GdkRectangle r1 = { a1.x, a1.y, a1.width, a1.height };
-                const GdkRectangle r2 = { a2.x, a2.y, a2.width, a2.height };
+                GdkRectangle r1 = { a1.x, a1.y, a1.width, a1.height };
+                GdkRectangle r2 = { a2.x, a2.y, a2.width, a2.height };
                 gdk_window_invalidate_rect(widget->parent->window, &r1, false);
                 gdk_window_invalidate_rect(widget->parent->window, &r2, false);
             }