diff options
author | raveit65 <[email protected]> | 2017-04-02 15:00:44 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-04-04 18:00:35 +0200 |
commit | e0e5650c8889586f91f7794272bd26f247971852 (patch) | |
tree | fc52d9cd4f0b3971d3bd124645d71d7603f0df3b | |
parent | 8d7526cba768a3626ede09b601efe95e2739f80e (diff) | |
download | libmatekbd-e0e5650c8889586f91f7794272bd26f247971852.tar.bz2 libmatekbd-e0e5650c8889586f91f7794272bd26f247971852.tar.xz |
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.
-rw-r--r-- | libmatekbd/matekbd-keyboard-drawing.c | 5 |
1 files changed, 5 insertions, 0 deletions
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] = |