Mercurial > audlegacy
changeset 4685:06028c2c9068
make a "pause" button and increase default window size
author | mf0102 <0102@gmx.at> |
---|---|
date | Sat, 05 Jul 2008 01:17:05 +0200 |
parents | 46044e2ae4f3 |
children | a6d1b4056966 |
files | src/audacious/ui_new.c |
diffstat | 1 files changed, 11 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/ui_new.c Sat Jul 05 01:06:56 2008 +0200 +++ b/src/audacious/ui_new.c Sat Jul 05 01:17:05 2008 +0200 @@ -66,6 +66,12 @@ } static void +button_pause_pressed() +{ + playback_pause(); +} + +static void button_previous_pressed() { playlist_prev(playlist_get_active()); @@ -166,10 +172,11 @@ and some control elements like position bar */ GtkToolItem *button_open, *button_add, - *button_play, *button_previous, *button_next; + *button_play, *button_pause, + *button_previous, *button_next; window = gtk_window_new(GTK_WINDOW_TOPLEVEL); - gtk_window_set_default_size(GTK_WINDOW(window), 350, 150); + gtk_window_set_default_size(GTK_WINDOW(window), 450, 150); g_signal_connect(G_OBJECT(window), "delete_event", G_CALLBACK(window_delete), NULL); g_signal_connect(G_OBJECT(window), "destroy", @@ -187,6 +194,8 @@ GTK_STOCK_ADD); button_play = gtk_toolbar_button_add(buttonbox, button_play_pressed, GTK_STOCK_MEDIA_PLAY); + button_pause = gtk_toolbar_button_add(buttonbox, button_pause_pressed, + GTK_STOCK_MEDIA_PAUSE); button_previous = gtk_toolbar_button_add(buttonbox, button_previous_pressed, GTK_STOCK_MEDIA_PREVIOUS); button_next = gtk_toolbar_button_add(buttonbox, button_next_pressed,