From: Maksym Veremeyenko Date: Sun, 19 Jun 2011 11:51:22 +0000 (+0300) Subject: block types icon load support added X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=482b279e48e45c0954e5ff33aa6f0104b9af1cad;p=omnplay block types icon load support added --- diff --git a/pixmaps/block_type_block_end_16x16.png b/pixmaps/block_type_block_end_16x16.png new file mode 100644 index 0000000..6260cf6 Binary files /dev/null and b/pixmaps/block_type_block_end_16x16.png differ diff --git a/pixmaps/block_type_block_loop_16x16.png b/pixmaps/block_type_block_loop_16x16.png new file mode 100644 index 0000000..aaa8e97 Binary files /dev/null and b/pixmaps/block_type_block_loop_16x16.png differ diff --git a/pixmaps/block_type_block_middle_16x16.png b/pixmaps/block_type_block_middle_16x16.png new file mode 100644 index 0000000..197a5d1 Binary files /dev/null and b/pixmaps/block_type_block_middle_16x16.png differ diff --git a/pixmaps/block_type_block_single_16x16.png b/pixmaps/block_type_block_single_16x16.png new file mode 100644 index 0000000..ec0d8e7 Binary files /dev/null and b/pixmaps/block_type_block_single_16x16.png differ diff --git a/pixmaps/block_type_block_start_16x16.png b/pixmaps/block_type_block_start_16x16.png new file mode 100644 index 0000000..5df6df1 Binary files /dev/null and b/pixmaps/block_type_block_start_16x16.png differ diff --git a/pixmaps/block_type_loop_end_16x16.png b/pixmaps/block_type_loop_end_16x16.png new file mode 100644 index 0000000..0ec719c Binary files /dev/null and b/pixmaps/block_type_loop_end_16x16.png differ diff --git a/pixmaps/block_type_loop_middle_16x16.png b/pixmaps/block_type_loop_middle_16x16.png new file mode 100644 index 0000000..76e206a Binary files /dev/null and b/pixmaps/block_type_loop_middle_16x16.png differ diff --git a/pixmaps/block_type_loop_start_16x16.png b/pixmaps/block_type_loop_start_16x16.png new file mode 100644 index 0000000..58a0d57 Binary files /dev/null and b/pixmaps/block_type_loop_start_16x16.png differ diff --git a/src/omnplay.h b/src/omnplay.h index 123d6a1..e2937ff 100644 --- a/src/omnplay.h +++ b/src/omnplay.h @@ -134,6 +134,7 @@ typedef struct omnplay_instance int ver_prev; pthread_mutex_t lock; char* path; + GdkPixbuf *block_icons[8]; } playlist; } omnplay_instance_t; diff --git a/src/ui.c b/src/ui.c index 17539d4..afe063e 100644 --- a/src/ui.c +++ b/src/ui.c @@ -514,5 +514,22 @@ GtkWidget* ui_omnplay (omnplay_instance_t* app) gtk_container_add (GTK_CONTAINER (wnd), pane_top(wnd, app)); + app->playlist.block_icons[OMNPLAY_PLAYLIST_ITEM_BLOCK_BEGIN] = + create_pixbuf("block_type_block_start_16x16.png"); + app->playlist.block_icons[OMNPLAY_PLAYLIST_ITEM_BLOCK_BODY] = + create_pixbuf("block_type_block_middle_16x16.png"); + app->playlist.block_icons[OMNPLAY_PLAYLIST_ITEM_BLOCK_END] = + create_pixbuf("block_type_block_end_16x16.png"); + app->playlist.block_icons[OMNPLAY_PLAYLIST_ITEM_BLOCK_SINGLE] = + create_pixbuf("block_type_block_single_16x16.png"); + app->playlist.block_icons[OMNPLAY_PLAYLIST_ITEM_LOOP_BEGIN] = + create_pixbuf("block_type_loop_start_16x16.png"); + app->playlist.block_icons[OMNPLAY_PLAYLIST_ITEM_LOOP_BODY] = + create_pixbuf("block_type_loop_middle_16x16.png"); + app->playlist.block_icons[OMNPLAY_PLAYLIST_ITEM_LOOP_END] = + create_pixbuf("block_type_loop_end_16x16.png"); + app->playlist.block_icons[OMNPLAY_PLAYLIST_ITEM_LOOP_SINGLE] = + create_pixbuf("block_type_block_loop_16x16.png"); + return wnd; }