summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-04-02 15:00:44 +0200
committerraveit65 <[email protected]>2017-04-02 23:19:40 +0200
commitf0dea4769699515994d19b3842b59713bdae0546 (patch)
treee29d6ab076e18b76c1c9d452fb1dce771bb87491
parent70131db8d0ccf7480f4b2f4722d26e7fd89e1692 (diff)
downloadlibmatekbd-f0dea4769699515994d19b3842b59713bdae0546.tar.bz2
libmatekbd-f0dea4769699515994d19b3842b59713bdae0546.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.c5
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] =