Mercurial > audlegacy
changeset 4707:512217ec24cc
removed some UI calls from the prefs code
author | mf0102 <0102@gmx.at> |
---|---|
date | Mon, 07 Jul 2008 23:13:55 +0200 |
parents | 7375fa718dd8 |
children | c2886b393206 |
files | src/audacious/legacy/ui_skin.c src/audacious/ui_preferences.c |
diffstat | 2 files changed, 11 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/legacy/ui_skin.c Mon Jul 07 23:01:59 2008 +0200 +++ b/src/audacious/legacy/ui_skin.c Mon Jul 07 23:13:55 2008 +0200 @@ -1641,14 +1641,18 @@ gboolean skin_reload_forced(void) { - gboolean error; - AUDDBG("\n"); + gboolean error; + AUDDBG("\n"); - skin_lock(aud_active_skin); - error = skin_load_nolock(aud_active_skin, aud_active_skin->path, TRUE); - skin_unlock(aud_active_skin); + skin_lock(aud_active_skin); + error = skin_load_nolock(aud_active_skin, aud_active_skin->path, TRUE); + skin_unlock(aud_active_skin); - return error; + ui_skinned_window_draw_all(mainwin); + ui_skinned_window_draw_all(equalizerwin); + ui_skinned_window_draw_all(playlistwin); + + return error; } void
--- a/src/audacious/ui_preferences.c Mon Jul 07 23:01:59 2008 +0200 +++ b/src/audacious/ui_preferences.c Mon Jul 07 23:13:55 2008 +0200 @@ -52,11 +52,11 @@ #include "configdb.h" #include "preferences.h" +#include "legacy/ui_equalizer.h" #include "legacy/ui_main.h" #include "legacy/ui_playlist.h" #include "legacy/ui_skinselector.h" #include "ui_preferences.h" -#include "legacy/ui_equalizer.h" #include "legacy/ui_skinned_playlist.h" #include "legacy/ui_skinned_textbox.h" #include "legacy/ui_skinned_window.h" @@ -1224,9 +1224,6 @@ { /* reload the skin to apply the change */ skin_reload_forced(); - ui_skinned_window_draw_all(mainwin); - ui_skinned_window_draw_all(equalizerwin); - ui_skinned_window_draw_all(playlistwin); } static void