[gtk+] texthandle: Avoid double rendering of background/frame



commit 15bb9acc8ad0cb53969d402025aab64aa52972cd
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Jun 17 15:58:55 2015 +0200

    texthandle: Avoid double rendering of background/frame
    
    gtk_render_handle() already renders background/frame itself, avoid
    doing this twice.

 gtk/gtktexthandle.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtktexthandle.c b/gtk/gtktexthandle.c
index 47de7ef..c89cf63 100644
--- a/gtk/gtktexthandle.c
+++ b/gtk/gtktexthandle.c
@@ -131,8 +131,6 @@ _gtk_text_handle_draw (GtkTextHandle         *handle,
     gtk_style_context_add_class (context,
                                  GTK_STYLE_CLASS_TOP);
 
-  gtk_render_background (context, cr, 0, 0, width, height);
-  gtk_render_frame (context, cr, 0, 0, width, height);
   gtk_render_handle (context, cr, 0, 0, width, height);
 
   gtk_style_context_restore (context);


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