[gedit] Disable composition.



commit 2bcf057e30f8af1c7c4799d2011c4591227d57ae
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Fri Apr 15 15:58:10 2011 +0200

    Disable composition.
    
    Scrolling is really slow with composition, so let's disable it
    until we find out what's the problem.
    See: https://bugzilla.gnome.org/show_bug.cgi?id=647802

 gedit/gedit-view-frame.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/gedit/gedit-view-frame.c b/gedit/gedit-view-frame.c
index 8373839..5fa1d7f 100644
--- a/gedit/gedit-view-frame.c
+++ b/gedit/gedit-view-frame.c
@@ -1420,8 +1420,6 @@ gedit_view_frame_init (GeditViewFrame *frame)
 	GeditDocument *doc;
 	GtkWidget *sw;
 	GeditOverlayChildPosition position;
-	GtkStyleContext *context;
-	GdkRGBA bg_color;
 
 	frame->priv = GEDIT_VIEW_FRAME_GET_PRIVATE (frame);
 
@@ -1451,8 +1449,6 @@ gedit_view_frame_init (GeditViewFrame *frame)
 	gtk_widget_show (sw);
 
 	frame->priv->overlay = gedit_animated_overlay_new (sw, frame->priv->view);
-
-	gedit_overlay_set_composited (GEDIT_OVERLAY (frame->priv->overlay), TRUE);
 	gtk_widget_show (frame->priv->overlay);
 
 	gtk_box_pack_start (GTK_BOX (frame), frame->priv->overlay, TRUE, TRUE, 0);
@@ -1477,6 +1473,12 @@ gedit_view_frame_init (GeditViewFrame *frame)
 	              "orientation", GTK_ORIENTATION_VERTICAL,
 	              NULL);
 
+#if 0
+	FIXME: For some reason scrolling is really slow with composition. See:
+	https://bugzilla.gnome.org/show_bug.cgi?id=647802
+
+	gedit_overlay_set_composited (GEDIT_OVERLAY (frame->priv->overlay), TRUE);
+
 	/* Force search widget slider to be transparent */
 	context = gtk_widget_get_style_context (frame->priv->slider);
 	gtk_style_context_get_background_color (context,
@@ -1488,6 +1490,7 @@ gedit_view_frame_init (GeditViewFrame *frame)
 	gtk_widget_override_background_color (frame->priv->slider,
 	                                      GTK_STATE_NORMAL,
 	                                      &bg_color);
+#endif
 
 	gedit_animated_overlay_add (GEDIT_ANIMATED_OVERLAY (frame->priv->overlay),
 	                            GEDIT_ANIMATABLE (frame->priv->slider));



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