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:
parent
5c3d06346a
commit
b8bed06cc8
@ -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
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user