[gtk+/gtk-style-context: 235/347] GtkStyleContext: Invalidate whole window if no invalidation region is obtained.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 235/347] GtkStyleContext: Invalidate whole window if no invalidation region is obtained.
- Date: Thu, 11 Nov 2010 01:24:16 +0000 (UTC)
commit e8edbf4343e5a9a087685299b2e441ca74ea6133
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]