1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-16 01:57:09 +00:00

C++ version of get_x11_color()

This commit is contained in:
Pavel Labath 2010-02-28 12:26:18 +01:00
parent 5c3d06346a
commit b8bed06cc8
2 changed files with 5 additions and 0 deletions

View File

@ -189,4 +189,7 @@ long get_x11_color(const char *name)
return (long) color.pixel;
}
long get_x11_color(const std::string &colour)
{ return get_x11_color(colour.c_str()); }
#endif

View File

@ -33,6 +33,8 @@
unsigned int adjust_colours(unsigned int);
unsigned long *do_gradient(int, unsigned long, unsigned long);
long get_x11_color(const std::string &colour);
// XXX: when everyone uses C++ strings, remove this C version
long get_x11_color(const char *);
#endif /* _COLOURS_H */