# HG changeset patch # User mf0102 <0102@gmx.at> # Date 1215213425 -7200 # Node ID 06028c2c9068d11290cdd2da0e63f6645a6dc5bd # Parent 46044e2ae4f3d2d68eccd65de4449bf3865d91a5 make a "pause" button and increase default window size diff -r 46044e2ae4f3 -r 06028c2c9068 src/audacious/ui_new.c --- 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,