summaryrefslogtreecommitdiff
path: root/eel/eel-gdk-extensions.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2011-10-05 11:01:48 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2011-10-05 12:30:09 -0400
commit61699ef56eb3091341c5f5a38189e12a11280e3e (patch)
tree3cd4af623004b393a1eadb3542b908b1b4d57aa4 /eel/eel-gdk-extensions.c
parentbcc62bec90aec23fb1ede56f0ce0181218fdc81a (diff)
downloadnautilus-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.c17
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)