( no avatar )
As some have noticed there has been a libawn-extras library sitting in my branch for the last few weeks. It's basically a collection of useful utility functions though there is nothing to keep it from acquiring more focused elements.
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
The purpose of this library is to provided awn-extra devs a place to put commonly used code without as high of a hurdle to cross as there is for libawn.
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
I encourage anyone who is interested to check it out. It is only in my branch at the moment but it will be moving in trunk at some point in the relatively near future.
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
-urls.
char* urlencode(const char *source, char *dest, unsigned max);
char *urldecode(char *source, char *dest);
char* urlencode(const char *source, char *dest, unsigned max);
char *urldecode(char *source, char *dest);
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
-convert a cairo surface to a pixbuf.
GdkPixbuf * surface_2_pixbuf( GdkPixbuf * pixbuf, cairo_surface_t * surface);
GdkPixbuf * get_pixbuf_from_surface(cairo_surface_t * surface);
GdkPixbuf * surface_2_pixbuf( GdkPixbuf * pixbuf, cairo_surface_t * surface);
GdkPixbuf * get_pixbuf_from_surface(cairo_surface_t * surface);
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
-some colour conversion stuff.
gchar * awncolor_to_string(AwnColor * colour);
AwnColor gdkcolor_to_awncolor_with_alpha( GdkColor * gdk_color,double alpha);
AwnColor gdkcolor_to_awncolor( GdkColor * gdk_colour);
gchar * awncolor_to_string(AwnColor * colour);
AwnColor gdkcolor_to_awncolor_with_alpha( GdkColor * gdk_color,double alpha);
AwnColor gdkcolor_to_awncolor( GdkColor * gdk_colour);
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
-Canned functions to send a message to a notifiication daemon.
gboolean notify_message(gchar * summary, gchar * body,gchar * icon_str,glong timeout);
void notify_message_async(gchar * summary, gchar * body,gchar * icon_str,glong timeout);
gboolean notify_message(gchar * summary, gchar * body,gchar * icon_str,glong timeout);
void notify_message_async(gchar * summary, gchar * body,gchar * icon_str,glong timeout);
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
