summaryrefslogtreecommitdiff
path: root/eel/eel-canvas-rect-ellipse.h
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-12-26 19:58:09 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-13 15:05:40 +0100
commitd99909f05e151ace2b6b3eb4f87700c417e513d5 (patch)
treeb32fff648fe44f64650409c2a0888bbe04504ff0 /eel/eel-canvas-rect-ellipse.h
parenta461e0a356a76f81076d78dd3b08a854884cdeeb (diff)
downloadcaja-d99909f05e151ace2b6b3eb4f87700c417e513d5.tar.bz2
caja-d99909f05e151ace2b6b3eb4f87700c417e513d5.tar.xz
GTK3 eel-canvas-rect: use RGBA colors only
taken from: https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-0&id=f0691e7
Diffstat (limited to 'eel/eel-canvas-rect-ellipse.h')
-rw-r--r--eel/eel-canvas-rect-ellipse.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/eel/eel-canvas-rect-ellipse.h b/eel/eel-canvas-rect-ellipse.h
index aaccf560..d54de4d2 100644
--- a/eel/eel-canvas-rect-ellipse.h
+++ b/eel/eel-canvas-rect-ellipse.h
@@ -84,8 +84,13 @@ extern "C" {
double x1, y1, x2, y2; /* Corners of item */
double width; /* Outline width */
+#if GTK_CHECK_VERSION(3,0,0)
+ GdkRGBA fill_color;
+ GdkRGBA outline_color;
+#else
guint fill_color; /* Fill color, RGBA */
guint outline_color; /* Outline color, RGBA */
+#endif
gboolean outline_stippling;