summaryrefslogtreecommitdiff
path: root/eel/eel-gdk-extensions.h
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-12-26 20:47:53 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-13 15:05:41 +0100
commit1dffd0e4615ffe0ec3c2b86a61b02d735898ab90 (patch)
tree6a6d5392ff4e20ea65d08d66b1da190bae1042f5 /eel/eel-gdk-extensions.h
parentda1e7f715a4eb882abe97837eef02c7d38bd5e54 (diff)
downloadcaja-1dffd0e4615ffe0ec3c2b86a61b02d735898ab90.tar.bz2
caja-1dffd0e4615ffe0ec3c2b86a61b02d735898ab90.tar.xz
GTK3 eel-gdk-extensions: port to GtkStyleContext
taken from: https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-0&id=1d3dd96
Diffstat (limited to 'eel/eel-gdk-extensions.h')
-rw-r--r--eel/eel-gdk-extensions.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/eel/eel-gdk-extensions.h b/eel/eel-gdk-extensions.h
index fedb2c22..ad94ddbd 100644
--- a/eel/eel-gdk-extensions.h
+++ b/eel/eel-gdk-extensions.h
@@ -114,7 +114,11 @@ guint32 eel_gdk_color_to_rgb (const GdkColor
GdkColor eel_gdk_rgb_to_color (guint32 color);
char * eel_gdk_rgb_to_color_spec (guint32 color);
+#if GTK_CHECK_VERSION(3,0,0)
+gboolean eel_gdk_rgba_is_dark (const GdkRGBA *color);
+#else
gboolean eel_gdk_color_is_dark (GdkColor *color);
+#endif
/* Wrapper for XParseGeometry */
EelGdkGeometryFlags eel_gdk_parse_geometry (const char *string,
@@ -124,15 +128,17 @@ EelGdkGeometryFlags eel_gdk_parse_geometry (const char
guint *height_return);
#if GTK_CHECK_VERSION(3,0,0)
void eel_cairo_draw_layout_with_drop_shadow (cairo_t *cr,
+ GdkRGBA *text_color,
+ GdkRGBA *shadow_color,
#else
void eel_gdk_draw_layout_with_drop_shadow (GdkDrawable *drawable,
-#endif
GdkColor *text_color,
GdkColor *shadow_color,
+#endif
int x,
int y,
PangoLayout *layout);
#if GTK_CHECK_VERSION(3,0,0)
-void eel_make_color_inactive (GdkColor *color);
+void eel_make_color_inactive (GdkRGBA *color);
#endif
#endif /* EEL_GDK_EXTENSIONS_H */