commit 02f4322fae380d54c6ab21b37eb1a4c1fec5bdb4 Author: Daniele Forsi <dfo...@src.gnome.org> Date: Sun Mar 25 16:48:49 2012 +0200
Do not pass arguments to void functions (warnings by clang) Fixes: repository_editor.c:455:35: warning: too many arguments in call to 'update_buttons' update_buttons(repository_view); ~~~~~~~~~~~~~~ ^ repository_editor.c:583:39: warning: too many arguments in call to 'update_buttons' update_buttons(repository_view); ~~~~~~~~~~~~~~ ^ repository_editor.c:600:39: warning: too many arguments in call to 'update_buttons' update_buttons(repository_view); ~~~~~~~~~~~~~~ ^ repository_editor.c:641:39: warning: too many arguments in call to 'update_buttons' update_buttons(repository_view); ~~~~~~~~~~~~~~ ^ repository_editor.c:673:35: warning: too many arguments in call to 'update_buttons' update_buttons(repository_view); ~~~~~~~~~~~~~~ ^ repository_editor.c:817:35: warning: too many arguments in call to 'update_buttons' update_buttons(repository_view); ~~~~~~~~~~~~~~ ^ WARNING: While resolving call to function 'update_buttons' arguments were dropped! WARNING: While resolving call to function 'update_buttons' arguments were dropped! WARNING: While resolving call to function 'update_buttons' arguments were dropped! WARNING: While resolving call to function 'update_buttons' arguments were dropped! WARNING: While resolving call to function 'update_buttons' arguments were dropped! WARNING: While resolving call to function 'init_repository_combo' arguments were dropped! WARNING: While resolving call to function 'update_buttons' arguments were dropped! plugins/repository_editor/repository_editor.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) --- diff --git a/plugins/repository_editor/repository_editor.c b/plugins/repository_editor/repository_editor.c index 097a3fb..91818b5 100644 --- a/plugins/repository_editor/repository_editor.c +++ b/plugins/repository_editor/repository_editor.c @@ -452,7 +452,7 @@ static gboolean finish_string_storage(gchar *key, gchar *str) { temp_prefs_remove_key(repository_view->temp_prefs, key); result = FALSE; } - update_buttons(repository_view); + update_buttons(); g_free(key); g_free(str); g_free(prefs_str); @@ -580,7 +580,7 @@ static void sync_playlist_mode_manual_toggled(GtkToggleButton *togglebutton) { if (gtk_toggle_button_get_active(togglebutton)) { finish_int_storage(key, SYNC_PLAYLIST_MODE_MANUAL); gtk_widget_set_sensitive(GET_WIDGET (repository_view->builder, MANUAL_SYNCDIR_CHOOSER), TRUE); - update_buttons(repository_view); + update_buttons(); } g_free(key); @@ -597,7 +597,7 @@ static void sync_playlist_mode_automatic_toggled(GtkToggleButton *togglebutton) if (gtk_toggle_button_get_active(togglebutton)) { finish_int_storage(key, SYNC_PLAYLIST_MODE_AUTOMATIC); gtk_widget_set_sensitive(GET_WIDGET (repository_view->builder, MANUAL_SYNCDIR_CHOOSER), FALSE); - update_buttons(repository_view); + update_buttons(); } g_free(key); @@ -638,7 +638,7 @@ static void standard_playlist_checkbutton_toggled(GtkToggleButton *togglebutton) else temp_prefs_set_int(repository_view->extra_prefs, key, active); - update_buttons(repository_view); + update_buttons(); g_free(key); return; } @@ -670,7 +670,7 @@ static void delete_repository_button_clicked(GtkButton *button) { temp_prefs_set_int(repository_view->extra_prefs, key, TRUE); g_free(key); - update_buttons(repository_view); + update_buttons(); } /* new repository button was clicked */ @@ -802,7 +802,7 @@ static void edit_apply_clicked(GtkButton *button) { iTunesDB *old_itdb = repository_view->itdb; Playlist *old_playlist = repository_view->playlist; - init_repository_combo(repository_view); + init_repository_combo(); if (new_itdb == old_itdb) { select_repository(new_itdb, old_playlist); } @@ -814,7 +814,7 @@ static void edit_apply_clicked(GtkButton *button) { printf ("index: %d\n", repository_view->itdb_index); # endif - update_buttons(repository_view); + update_buttons(); /* * Free the deleted itdbs. Need to do this at the end ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ gtkpod-cvs2 mailing list gtkpod-cvs2@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2