2 * Gnome Simple Stateful Music Player
3 * Copyright (C) 2007 Andy Balaam
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 #include "callbacks.h"
27 #include "interface.h"
29 #include "gssmp_config.h"
31 #include "gssmp_test.h"
34 on_window1_delete_event (GtkWidget
*widget
,
43 on_button4_clicked (GtkButton
*button
,
46 gssmp_ui_next_clicked ();
51 on_button1_clicked (GtkButton
*button
,
54 gssmp_ui_previous_clicked ();
59 on_button2_clicked (GtkButton
*button
,
62 gssmp_ui_play_clicked ();
67 on_button3_clicked (GtkButton
*button
,
70 gssmp_ui_pause_clicked ();
74 on_hscale1_change_value (GtkRange
*range
,
79 gssmp_ui_slider_changed (value
);
85 on_open_directory1_activate (GtkMenuItem
*menuitem
,
88 gssmp_ui_choose_directory_clicked ();
93 on_open_file1_activate (GtkMenuItem
*menuitem
,
96 gssmp_ui_choose_file_clicked ();
100 on_recent1_activate (GtkMenuItem
*menuitem
,
106 on_quit1_activate (GtkMenuItem
*menuitem
,
114 on_repeat_all1_activate (GtkMenuItem
*menuitem
,
117 config_repeat_style
= repeat_all
;
122 on_repeat_one1_activate (GtkMenuItem
*menuitem
,
125 config_repeat_style
= repeat_one
;
130 on_shuffle1_activate (GtkMenuItem
*menuitem
,
133 config_repeat_style
= shuffle
;
138 on_no_repeat1_activate (GtkMenuItem
*menuitem
,
141 config_repeat_style
= no_repeat
;
145 on_about1_activate (GtkMenuItem
*menuitem
,
153 on_vscale1_change_value (GtkRange
*range
,
154 GtkScrollType scroll
,
158 gssmp_ui_volume_change (value
);
164 on_how_to_use1_activate (GtkMenuItem
*menuitem
,
167 gssmp_ui_launch_help ();
172 on_lastfm1_activate (GtkMenuItem
*menuitem
,
180 on_checkbutton1_toggled (GtkToggleButton
*togglebutton
,
183 gssmp_ui_lastfm_statechange ();
187 on_entry1_changed (GtkEditable
*editable
,
190 gssmp_ui_lastfm_exechanged ();
194 on_lastfmwindow_delete_event (GtkWidget
*widget
,
198 gssmp_ui_lastfm_close ();
203 on_button5_clicked (GtkButton
*button
,
206 gssmp_ui_lastfm_close ();
210 on_about_response (GtkDialog
*dialog
,
214 gtk_widget_hide( GTK_WIDGET(dialog
) );