gchar name[32];
const static struct
{
+ int idx;
int type;
gchar* tooltip;
gchar* filename;
} buttons[] =
{
{
+ 0,
2,
"Beginning of playlist",
- "stock_media-begin-16.png"
+ "begin-16x16_(Axialis_Team).png" /* Free Icons by Axialis Software http://www.axialis.com */
},
{
+ 1,
2,
"Start of clip",
- "stock_media-prev-16.png"
+ "prev-16x16_(Axialis_Team).png" /* Free Icons by Axialis Software http://www.axialis.com */
},
{
2,
+ 2,
"Rewind",
- "stock_media-rew-16.png"
+ "rew-16x16_(Axialis_Team).png" /* Free Icons by Axialis Software http://www.axialis.com */
},
{
+ 3,
2,
"Previous frame",
- "stock_media-prev-frame-16.png"
+ "prev-frame-16x16_(Axialis_Team).png" /* Free Icons by Axialis Software http://www.axialis.com */
},
{
+ 5,
1,
- "Pause",
- "player_pause_32x32.png"
+ "Play",
+ "player_play_64x32_(Axialis_Team).png" /* Free Icons by Axialis Software http://www.axialis.com */
},
{
+ 4,
1,
- "Play",
- "player_play_64x32.png"
+ "Pause",
+ "player_pause_32x32_(Axialis_Team).png" /* Free Icons by Axialis Software http://www.axialis.com */
},
{
+ 6,
1,
"Stop",
- "player_stop_32x32.png"
+ "player_stop_32x32_(Axialis_Team).png" /* Free Icons by Axialis Software http://www.axialis.com */
},
{
+ 7,
2,
"Next frame",
- "stock_media-next-frame-16.png"
+ "next-frame-16x16_(Axialis_Team).png" /* Free Icons by Axialis Software http://www.axialis.com */
},
{
+ 8,
2,
"Fast forward",
- "stock_media-fwd-16.png"
+ "fwd-16x16_(Axialis_Team).png" /* Free Icons by Axialis Software http://www.axialis.com */
},
{
+ 9,
2,
"Next clip",
- "stock_media-next-16.png"
+ "next-16x16_(Axialis_Team).png" /* Free Icons by Axialis Software http://www.axialis.com */
},
{
+ 10,
2,
"End of playlist",
- "stock_media-end-16.png"
+ "end-16x16_(Axialis_Team).png" /* Free Icons by Axialis Software http://www.axialis.com */
},
{
+ 11,
2,
"Loop On",
- "eof-loop-16.png"
+ "loop_on_16x16_(Axialis_Team).png" /* Free Icons by Axialis Software http://www.axialis.com */
},
{
+ 12,
2,
"Loop Off",
- "eof-pause-16.png"
+ "loop_off_16x16_(Axialis_Team).png" /* Free Icons by Axialis Software http://www.axialis.com */
},
{
0,
+ 0,
NULL,
NULL
}
gtk_widget_show (image);
gtk_container_add (GTK_CONTAINER (transport), image);
- snprintf(name, sizeof(name), "transport_%d", i);
+ snprintf(name, sizeof(name), "transport_%d", buttons[i].idx);
GLADE_HOOKUP_OBJECT (top, transport, name);
- snprintf(name, sizeof(name), "transport_image_%d", i);
+ snprintf(name, sizeof(name), "transport_image_%d", buttons[i].idx);
GLADE_HOOKUP_OBJECT (top, image, name);
};
gtk_widget_show (hbox);
snprintf(name, sizeof(name), "bbt_label_%da", type);
- label[0] = gtk_label_new (name);
+ label[0] = gtk_label_new ("");
gtk_widget_show (label[0]);
gtk_box_pack_start (GTK_BOX (hbox), label[0], TRUE, TRUE, 0);
gtk_label_set_justify (GTK_LABEL (label[0]), GTK_JUSTIFY_LEFT);
FALSE, TRUE, 0);
snprintf(name, sizeof(name), "bbt_label_%db", type);
- label[1] = gtk_label_new (name);
+ label[1] = gtk_label_new ("");
gtk_widget_show (label[1]);
gtk_box_pack_start (GTK_BOX (hbox), label[1], TRUE, TRUE, 0);
gtk_label_set_justify (GTK_LABEL (label[1]), GTK_JUSTIFY_LEFT);
- GLADE_HOOKUP_OBJECT (top, label[0], name);
+ GLADE_HOOKUP_OBJECT (top, label[1], name);
return hbox;
};
GtkWidget *label40;
GtkWidget *vbox_trim;
GtkWidget *statusbar;
+ GtkWidget *button_open_playlist, *button_save_playlist;
gdv1394d = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_title (GTK_WINDOW (gdv1394d), _("Melted Client"));
gtk_toolbar_append_space (GTK_TOOLBAR (toolbar1));
+ tmp_toolbar_icon = gtk_image_new_from_stock ("gtk-open",
+ gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar1)));
+ button_open_playlist = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
+ GTK_TOOLBAR_CHILD_BUTTON,
+ NULL,
+ "Open Playlist",
+ _("Open playlist"), NULL,
+ tmp_toolbar_icon, NULL, NULL);
+ gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar1)->children)->data))->label), TRUE);
+ gtk_widget_show (button_open_playlist);
+ GLADE_HOOKUP_OBJECT (gdv1394d, button_open_playlist, "button_open_playlist");
+
+ tmp_toolbar_icon = gtk_image_new_from_stock ("gtk-save-as",
+ gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar1)));
+ button_save_playlist = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
+ GTK_TOOLBAR_CHILD_BUTTON,
+ NULL,
+ "Save Playlist",
+ _("Save playlist"), NULL,
+ tmp_toolbar_icon, NULL, NULL);
+ gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar1)->children)->data))->label), TRUE);
+ gtk_widget_show (button_save_playlist);
+ GLADE_HOOKUP_OBJECT (gdv1394d, button_save_playlist, "button_save_playlist");
+
+ gtk_toolbar_append_space (GTK_TOOLBAR (toolbar1));
+
// vseparator1 = gtk_vseparator_new ();
// gtk_widget_show (vseparator1);
// gtk_toolbar_append_widget (GTK_TOOLBAR (toolbar1), vseparator1, NULL, NULL);