summaryrefslogtreecommitdiff
path: root/libmatekbd/matekbd-keyboard-drawing.h
diff options
context:
space:
mode:
authorSorokin Alexei <[email protected]>2016-06-01 02:12:17 +0300
committerSorokin Alexei <[email protected]>2016-06-01 02:12:17 +0300
commit4d9bb5f8ddea1d8756772e0c1bc54105f36a67af (patch)
tree94d8c6db84bca272880f8ed1680be37948f1581d /libmatekbd/matekbd-keyboard-drawing.h
parentff8e6e29e6db8f4ef8e5bd79f123e7e207f5be80 (diff)
downloadlibmatekbd-4d9bb5f8ddea1d8756772e0c1bc54105f36a67af.tar.bz2
libmatekbd-4d9bb5f8ddea1d8756772e0c1bc54105f36a67af.tar.xz
GTK+3: use GdkRGBA instead of deprecated GdkColor
this breaks ABI to some extent, additionally store GdkColor instead of a pointer on GTK+2
Diffstat (limited to 'libmatekbd/matekbd-keyboard-drawing.h')
-rw-r--r--libmatekbd/matekbd-keyboard-drawing.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/libmatekbd/matekbd-keyboard-drawing.h b/libmatekbd/matekbd-keyboard-drawing.h
index e481947..3a7b1e2 100644
--- a/libmatekbd/matekbd-keyboard-drawing.h
+++ b/libmatekbd/matekbd-keyboard-drawing.h
@@ -117,7 +117,11 @@ struct _MatekbdKeyboardDrawingRenderContext {
gint scale_numerator;
gint scale_denominator;
- GdkColor *dark_color;
+#if GTK_CHECK_VERSION (3, 0, 0)
+ GdkRGBA dark_color;
+#else
+ GdkColor dark_color;
+#endif
};
struct _MatekbdKeyboardDrawing {
@@ -138,7 +142,11 @@ struct _MatekbdKeyboardDrawing {
/* list of stuff to draw in priority order */
GList *keyboard_items;
+#if GTK_CHECK_VERSION (3, 0, 0)
+ GdkRGBA *colors;
+#else
GdkColor *colors;
+#endif
guint timeout;
guint idle_redraw;