[gtk+/gtk-style-context: 235/533] GtkStyleContext: Invalidate whole window if no invalidation region is obtained.



commit 941688d5cd5793310c734078ee49077b79e37b2d
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Oct 5 10:53:09 2010 +0200

    GtkStyleContext: Invalidate whole window if no invalidation region is obtained.

 gtk/gtkstylecontext.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index cc234ee..194070e 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -301,6 +301,8 @@ timeline_frame_cb (GtkTimeline *timeline,
   if (info->invalidation_region &&
       !cairo_region_is_empty (info->invalidation_region))
     gdk_window_invalidate_region (info->window, info->invalidation_region, TRUE);
+  else
+    gdk_window_invalidate_rect (info->window, NULL, TRUE);
 }
 
 static void
@@ -327,6 +329,8 @@ timeline_finished_cb (GtkTimeline *timeline,
           if (info->invalidation_region &&
               !cairo_region_is_empty (info->invalidation_region))
             gdk_window_invalidate_region (info->window, info->invalidation_region, TRUE);
+          else
+            gdk_window_invalidate_rect (info->window, NULL, TRUE);
 
           animation_info_free (info);
           break;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]