diff options
author | infirit <[email protected]> | 2015-09-07 00:22:36 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2015-09-07 02:52:53 +0200 |
commit | 6080e21f028cece6493f0e4adef45174a363cdfa (patch) | |
tree | a1e528be2195c87b529085f8efac3d90c87078c2 | |
parent | af5a725ad9cbf0f44ae257de8824f1c69b6ce49d (diff) | |
download | libmatekbd-6080e21f028cece6493f0e4adef45174a363cdfa.tar.bz2 libmatekbd-6080e21f028cece6493f0e4adef45174a363cdfa.tar.xz |
Do not highlight when focus is received
Taken from libgnomekbd,
commit: c9ed581f8d593da2d206127f09866ccffb95256a
from: Sergey V. Udaltsov <[email protected]>
gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=640425
-rw-r--r-- | libmatekbd/matekbd-keyboard-drawing.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/libmatekbd/matekbd-keyboard-drawing.c b/libmatekbd/matekbd-keyboard-drawing.c index e56ee8c..5c49a0e 100644 --- a/libmatekbd/matekbd-keyboard-drawing.c +++ b/libmatekbd/matekbd-keyboard-drawing.c @@ -1461,8 +1461,6 @@ expose_event (GtkWidget *widget, MatekbdKeyboardDrawing *drawing) #endif { - GtkAllocation allocation; - #if !GTK_CHECK_VERSION (3, 0, 0) cairo_t *cr; #endif @@ -1491,24 +1489,6 @@ expose_event (GtkWidget *widget, cairo_destroy (cr); #endif - if (gtk_widget_has_focus (widget)) { - gtk_widget_get_allocation (widget, &allocation); - gtk_paint_focus (gtk_widget_get_style (widget), -#if GTK_CHECK_VERSION (3, 0, 0) - cr, -#else - gtk_widget_get_window (widget), -#endif - gtk_widget_get_state (widget), -#if GTK_CHECK_VERSION (3, 0, 0) - widget, "keyboard-drawing", -#else - &event->area, widget, "keyboard-drawing", -#endif - 0, 0, allocation.width, - allocation.height); - } - return FALSE; } |