diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2011-10-05 11:01:48 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2011-10-05 12:30:09 -0400 |
commit | 61699ef56eb3091341c5f5a38189e12a11280e3e (patch) | |
tree | 3cd4af623004b393a1eadb3542b908b1b4d57aa4 /eel/eel-gdk-extensions.c | |
parent | bcc62bec90aec23fb1ede56f0ce0181218fdc81a (diff) | |
download | nautilus-61699ef56eb3091341c5f5a38189e12a11280e3e.tar.gz |
eel: remove unused eel_gdk_rgba_is_dark()
Diffstat (limited to 'eel/eel-gdk-extensions.c')
-rw-r--r-- | eel/eel-gdk-extensions.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/eel/eel-gdk-extensions.c b/eel/eel-gdk-extensions.c index 161aebe53..4c9c21f96 100644 --- a/eel/eel-gdk-extensions.c +++ b/eel/eel-gdk-extensions.c @@ -35,23 +35,6 @@ #include <stdlib.h> #include <pango/pango.h> -/** - * eel_gdk_rgba_is_dark: - * - * Return true if the given color is `dark' - */ -gboolean -eel_gdk_rgba_is_dark (const GdkRGBA *color) -{ - int intensity; - - intensity = ((((int) (color->red) >> 8) * 77) - + (((int) (color->green) >> 8) * 150) - + (((int) (color->blue) >> 8) * 28)) >> 8; - - return intensity < 128; -} - EelGdkGeometryFlags eel_gdk_parse_geometry (const char *string, int *x_return, int *y_return, guint *width_return, guint *height_return) |