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
parent d1ca5029
......@@ -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)
#if 0
FIXME: For some reason scrolling is really slow with composition. See:
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,
gedit_animated_overlay_add (GEDIT_ANIMATED_OVERLAY (frame->priv->overlay),
GEDIT_ANIMATABLE (frame->priv->slider));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment