From e0e5650c8889586f91f7794272bd26f247971852 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sun, 2 Apr 2017 15:00:44 +0200 Subject: keyboard-drawing: set css name matekbd-keyboard-drawing Needed to avoid using wildcards in themes for styling selected bg on pressed keys on 'widget' css name. --- libmatekbd/matekbd-keyboard-drawing.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libmatekbd/matekbd-keyboard-drawing.c b/libmatekbd/matekbd-keyboard-drawing.c index 6b02fb0..a5be4aa 100644 --- a/libmatekbd/matekbd-keyboard-drawing.c +++ b/libmatekbd/matekbd-keyboard-drawing.c @@ -2176,6 +2176,11 @@ matekbd_keyboard_drawing_new (void) static void matekbd_keyboard_drawing_class_init (MatekbdKeyboardDrawingClass * klass) { +#if GTK_CHECK_VERSION (3, 20, 0) + GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); + gtk_widget_class_set_css_name (widget_class, "matekbd-keyboard-drawing"); +#endif + klass->bad_keycode = NULL; matekbd_keyboard_drawing_signals[BAD_KEYCODE] = -- cgit v1.2.1