]> git.saurik.com Git - wxWidgets.git/commitdiff
Use gdk_window_invalidate instead of gtk_widget_queue_draw as the latter doesn't...
authorRobert Roebling <robert@roebling.de>
Sat, 28 Feb 2009 17:22:35 +0000 (17:22 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 28 Feb 2009 17:22:35 +0000 (17:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp

index ae545bf49aa704fb4eda7917b0e225cc4fa23205..b996ff7fee9d4e807536e2ee7d48faf7fced7626 100644 (file)
@@ -3526,6 +3526,8 @@ bool wxWindowGTK::ScrollPages(int pages)
     return DoScrollByUnits(ScrollDir_Vert, ScrollUnit_Page, pages);
 }
 
+#include "wx/treectrl.h"
+
 void wxWindowGTK::Refresh(bool WXUNUSED(eraseBackground),
                           const wxRect *rect)
 {
@@ -3541,23 +3543,21 @@ void wxWindowGTK::Refresh(bool WXUNUSED(eraseBackground),
         return;
 
     if (rect == NULL)
-        gtk_widget_queue_draw(widget);
+    {
+        gdk_window_invalidate_rect( widget->window, NULL, TRUE );
+    }
     else
     {
         int x = rect->x;
         if (GetLayoutDirection() == wxLayout_RightToLeft)
             x = GetClientSize().x - x - rect->width;
-
-#if 0
-        gtk_widget_queue_draw_area(widget, x, rect->y, rect->width, rect->height);
-#else
+            
         GdkRectangle r;
         r.x = rect->x;
         r.y = rect->y;
         r.width = rect->width;
         r.height = rect->height;
         gdk_window_invalidate_rect( m_wxwindow->window, &r, TRUE );
-#endif
     }
 }