diff options
author | jstebbins <[email protected]> | 2008-09-08 23:11:15 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-09-08 23:11:15 +0000 |
commit | 91a3253e721ecd9313b1930aadffbb1902f8ab33 (patch) | |
tree | 37e069cb0e9e1009eb2143452426e677a593170e /gtk/src/icons.c | |
parent | 4d231bd034d3f73efae01eee686896234c202a85 (diff) |
LinGui: Internalize all the icons so I don't have to install them in
a system directory. One step closer to being able to build a binary
that can stand on it's own without a bunch of additional resource files.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1678 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/icons.c')
-rw-r--r-- | gtk/src/icons.c | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/gtk/src/icons.c b/gtk/src/icons.c new file mode 100644 index 000000000..3d4e7ef0b --- /dev/null +++ b/gtk/src/icons.c @@ -0,0 +1,102 @@ +#include <gtk/gtk.h> +#include "hb-activity.32.h" +#include "hb-add-queue.32.h" +#include "hb-canceled.16.h" +#include "hb-complete.16.h" +#include "hb-drawer.32.h" +#include "hb-icon.128.h" +#include "hb-icon.64.h" +#include "hb-pause.32.h" +#include "hb-play.32.h" +#include "hb-pref.32.h" +#include "hb-queue.32.h" +#include "hb-queue-delete.16.h" +#include "hb-queue-job.16.h" +#include "hb-queue-pass1.16.h" +#include "hb-queue-pass2.16.h" +#include "hb-queue-subtitle.16.h" +#include "hb-remove.32.h" +#include "hb-source.32.h" +#include "hb-stop.32.h" +#include "hb-working0.16.h" +#include "hb-working1.16.h" +#include "hb-working2.16.h" +#include "hb-working3.16.h" +#include "hb-working4.16.h" +#include "hb-working5.16.h" + +void +ghb_load_icons() +{ + GdkPixbuf *pb; + + pb = gdk_pixbuf_new_from_inline(-1, hb_activity32, FALSE, NULL); + gtk_icon_theme_add_builtin_icon("hb-activity", 32, pb); + + pb = gdk_pixbuf_new_from_inline(-1, hb_add_queue32, FALSE, NULL); + gtk_icon_theme_add_builtin_icon("hb-add-queue", 32, pb); + + pb = gdk_pixbuf_new_from_inline(-1, hb_canceled16, FALSE, NULL); + gtk_icon_theme_add_builtin_icon("hb-canceled", 16, pb); + + pb = gdk_pixbuf_new_from_inline(-1, hb_complete16, FALSE, NULL); + gtk_icon_theme_add_builtin_icon("hb-complete", 16, pb); + + pb = gdk_pixbuf_new_from_inline(-1, hb_drawer32, FALSE, NULL); + gtk_icon_theme_add_builtin_icon("hb-drawer", 32, pb); + + pb = gdk_pixbuf_new_from_inline(-1, hb_icon128, FALSE, NULL); + gtk_icon_theme_add_builtin_icon("hb-icon", 128, pb); + + pb = gdk_pixbuf_new_from_inline(-1, hb_play32, FALSE, NULL); + gtk_icon_theme_add_builtin_icon("hb-play", 32, pb); + + pb = gdk_pixbuf_new_from_inline(-1, hb_pref32, FALSE, NULL); + gtk_icon_theme_add_builtin_icon("hb-pref", 32, pb); + + pb = gdk_pixbuf_new_from_inline(-1, hb_queue32, FALSE, NULL); + gtk_icon_theme_add_builtin_icon("hb-queue", 32, pb); + + pb = gdk_pixbuf_new_from_inline(-1, hb_queue_delete16, FALSE, NULL); + gtk_icon_theme_add_builtin_icon("hb-queue-delete", 16, pb); + + pb = gdk_pixbuf_new_from_inline(-1, hb_queue_job16, FALSE, NULL); + gtk_icon_theme_add_builtin_icon("hb-queue-job", 16, pb); + + pb = gdk_pixbuf_new_from_inline(-1, hb_queue_pass1, FALSE, NULL); + gtk_icon_theme_add_builtin_icon("hb-queue-pass1", 16, pb); + + pb = gdk_pixbuf_new_from_inline(-1, hb_queue_pass2, FALSE, NULL); + gtk_icon_theme_add_builtin_icon("hb-queue-pass2", 16, pb); + + pb = gdk_pixbuf_new_from_inline(-1, hb_queue_subtitle16, FALSE, NULL); + gtk_icon_theme_add_builtin_icon("hb-queue-subtitle", 16, pb); + + pb = gdk_pixbuf_new_from_inline(-1, hb_remove32, FALSE, NULL); + gtk_icon_theme_add_builtin_icon("hb-remove", 32, pb); + + pb = gdk_pixbuf_new_from_inline(-1, hb_source32, FALSE, NULL); + gtk_icon_theme_add_builtin_icon("hb-source", 32, pb); + + pb = gdk_pixbuf_new_from_inline(-1, hb_stop32, FALSE, NULL); + gtk_icon_theme_add_builtin_icon("hb-stop", 32, pb); + + pb = gdk_pixbuf_new_from_inline(-1, hb_working0, FALSE, NULL); + gtk_icon_theme_add_builtin_icon("hb-working0", 16, pb); + + pb = gdk_pixbuf_new_from_inline(-1, hb_working1, FALSE, NULL); + gtk_icon_theme_add_builtin_icon("hb-working1", 16, pb); + + pb = gdk_pixbuf_new_from_inline(-1, hb_working2, FALSE, NULL); + gtk_icon_theme_add_builtin_icon("hb-working2", 16, pb); + + pb = gdk_pixbuf_new_from_inline(-1, hb_working3, FALSE, NULL); + gtk_icon_theme_add_builtin_icon("hb-working3", 16, pb); + + pb = gdk_pixbuf_new_from_inline(-1, hb_working4, FALSE, NULL); + gtk_icon_theme_add_builtin_icon("hb-working4", 16, pb); + + pb = gdk_pixbuf_new_from_inline(-1, hb_working5, FALSE, NULL); + gtk_icon_theme_add_builtin_icon("hb-working5", 16, pb); + +} |