diff options
author | jstebbins <[email protected]> | 2008-09-09 23:14:28 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-09-09 23:14:28 +0000 |
commit | e57d4d0bf36c3b5d4691134d0fdb8171cb25f843 (patch) | |
tree | ad4dddfe057558ad5cd8fd5c02eb1d156079c709 /gtk/src/icon_tools.h | |
parent | ebf4b4d663b9eeeed5d9632b5a2076355cff7145 (diff) |
LinGui: consolidate all resources into one stringified plist file that gets
compiled in. icons and everyting all rolled up into one ball-o-wax.
hehe, plists are cool
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1685 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/icon_tools.h')
-rw-r--r-- | gtk/src/icon_tools.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gtk/src/icon_tools.h b/gtk/src/icon_tools.h new file mode 100644 index 000000000..24575a88b --- /dev/null +++ b/gtk/src/icon_tools.h @@ -0,0 +1,30 @@ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Library General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA + */ +#if !defined(_ICON_TOOLS_H_) +#define _ICON_TOOLS_H_ + +#include <glib.h> +#include <gdk-pixbuf/gdk-pixbuf.h> +#include <gdk-pixbuf/gdk-pixdata.h> + +GdkPixbuf* icon_deserialize(const guint8 *sd, guint len); +guint8* icon_serialize(const GdkPixbuf *pixbuf, guint *len); +guint8* icon_file_serialize(const gchar *filename, guint *len); +GdkPixbuf* base64_to_icon(const gchar *bd); +gchar* icon_to_base64(const GdkPixbuf *pixbuf); +gchar* icon_file_to_base64(const gchar *filename); + +#endif // _ICON_TOOLS_H_ |