From: Robert Roebling Date: Fri, 23 Jan 2009 13:54:15 +0000 (+0000) Subject: Not calling _size_allocate() breaks a.o. the native wxDataViewCtrl X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1831914337402d1b3645e955c44829ee3251a39e Not calling _size_allocate() breaks a.o. the native wxDataViewCtrl git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/win_gtk.cpp b/src/gtk/win_gtk.cpp index 0ef51eb2bd..4d7f2d5b64 100644 --- a/src/gtk/win_gtk.cpp +++ b/src/gtk/win_gtk.cpp @@ -108,12 +108,7 @@ static void size_allocate(GtkWidget* widget, GtkAllocation* alloc) child_alloc.height = req.height; if (gtk_widget_get_direction(widget) == GTK_TEXT_DIR_RTL) child_alloc.x = w - child_alloc.x - child_alloc.width; - - if ((child_alloc.x != child_old_alloc.x) || - (child_alloc.y != child_old_alloc.y) || - (child_alloc.width != child_old_alloc.width) || - (child_alloc.height != child_old_alloc.height)) - gtk_widget_size_allocate(child->widget, &child_alloc); + gtk_widget_size_allocate(child->widget, &child_alloc); } } }