[evince/gtk-style-context: 7/8] libview: Set redraw_on_allocate to FALSE since we handle our own redrawing



commit f615894760171832fe74fa029a8ee4afa196aa68
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Mon Nov 1 10:43:07 2010 +0100

    libview: Set redraw_on_allocate to FALSE since we handle our own redrawing

 libview/ev-view.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index d0fdb10..bdf738f 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -4800,6 +4800,8 @@ ev_view_init (EvView *view)
 {
 	gtk_widget_set_has_window (GTK_WIDGET (view), TRUE);
 	gtk_widget_set_can_focus (GTK_WIDGET (view), TRUE);
+	gtk_widget_set_redraw_on_allocate (GTK_WIDGET (view), FALSE);
+	gtk_container_set_resize_mode (GTK_CONTAINER (view), GTK_RESIZE_QUEUE);
 
 	gtk_widget_set_events (GTK_WIDGET (view),
 			       GDK_EXPOSURE_MASK |



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