[libgnomekbd] Do not highlight when focus is received



commit c9ed581f8d593da2d206127f09866ccffb95256a
Author: Sergey V. Udaltsov <svu gnome org>
Date:   Tue Jan 25 00:46:52 2011 +0000

    Do not highlight when focus is received
    
    https://bugzilla.gnome.org/show_bug.cgi?id=640425

 libgnomekbd/gkbd-keyboard-drawing.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/libgnomekbd/gkbd-keyboard-drawing.c b/libgnomekbd/gkbd-keyboard-drawing.c
index a6f4ebe..2cc4066 100644
--- a/libgnomekbd/gkbd-keyboard-drawing.c
+++ b/libgnomekbd/gkbd-keyboard-drawing.c
@@ -1427,8 +1427,6 @@ free_render_context (GkbdKeyboardDrawing * drawing)
 static gboolean
 draw (GtkWidget * widget, cairo_t * cr, GkbdKeyboardDrawing * drawing)
 {
-	GtkAllocation allocation;
-
 	if (!drawing->xkb)
 		return FALSE;
 
@@ -1438,16 +1436,6 @@ draw (GtkWidget * widget, cairo_t * cr, GkbdKeyboardDrawing * drawing)
 	cairo_set_source_surface (cr, drawing->surface, 0, 0);
 	cairo_paint (cr);
 
-	if (gtk_widget_has_focus (widget)) {
-		gtk_widget_get_allocation (widget, &allocation);
-		gtk_paint_focus (gtk_widget_get_style (widget),
-				 cr,
-				 gtk_widget_get_state (widget),
-				 widget, "keyboard-drawing",
-				 0, 0, allocation.width,
-				 allocation.height);
-	}
-
 	return FALSE;
 }
 



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