# HG changeset patch # User Tomasz Mon # Date 1183882996 -7200 # Node ID bbca1e0e054a7c95ed8dc024b5b2108edab4d4aa # Parent e6340ab753a15fd8ea8ddd7d544480cd848d1041 don't call gtk_widget_show/hide from func that's called every now and then diff -r e6340ab753a1 -r bbca1e0e054a src/audacious/playback.c --- a/src/audacious/playback.c Sat Jul 07 18:56:43 2007 +0200 +++ b/src/audacious/playback.c Sun Jul 08 10:23:16 2007 +0200 @@ -101,6 +101,11 @@ playlist_check_pos_current(playlist); mainwin_set_info_text(); + if (cfg.player_shaded) { + gtk_widget_show(mainwin_stime_min); + gtk_widget_show(mainwin_stime_sec); + } + hook_call("playback begin", entry); } diff -r e6340ab753a1 -r bbca1e0e054a src/audacious/ui_equalizer.c --- a/src/audacious/ui_equalizer.c Sat Jul 07 18:56:43 2007 +0200 +++ b/src/audacious/ui_equalizer.c Sun Jul 08 10:23:16 2007 +0200 @@ -292,6 +292,13 @@ skin_draw_pixmap(bmp_active_skin, equalizerwin_bg, SKINNED_WINDOW(equalizerwin)->gc, SKIN_EQMAIN, 0, 0, 0, 0, 275, 116); equalizerwin_draw_titlebar(); + + GList *iter; + for (iter = GTK_FIXED (SKINNED_WINDOW(equalizerwin)->fixed)->children; iter; iter = g_list_next (iter)) { + GtkFixedChild *child_data = (GtkFixedChild *) iter->data; + GtkWidget *child = child_data->widget; + gtk_widget_queue_draw(child); + } } widget_list_draw(equalizerwin_wlist, &redraw, force); @@ -329,12 +336,6 @@ widget_list_clear_redraw(equalizerwin_wlist); gdk_window_clear(equalizerwin->window); - GList *iter; - for (iter = GTK_FIXED (SKINNED_WINDOW(mainwin)->fixed)->children; iter; iter = g_list_next (iter)) { - GtkFixedChild *child_data = (GtkFixedChild *) iter->data; - GtkWidget *child = child_data->widget; - gtk_widget_queue_draw(child); - } gdk_flush(); } diff -r e6340ab753a1 -r bbca1e0e054a src/audacious/ui_main.c --- a/src/audacious/ui_main.c Sat Jul 07 18:56:43 2007 +0200 +++ b/src/audacious/ui_main.c Sun Jul 08 10:23:16 2007 +0200 @@ -786,11 +786,6 @@ else gtk_widget_hide(mainwin_info); - if (bmp_active_skin->properties.mainwin_othertext_visible) - gtk_widget_show(mainwin_othertext); - else - gtk_widget_hide(mainwin_othertext); - if (bmp_active_skin->properties.mainwin_vis_visible) widget_show(WIDGET(mainwin_vis)); else @@ -871,12 +866,6 @@ monostereo_set_num_channels(mainwin_monostereo, n_channels); - if (cfg.player_shaded) - { - gtk_widget_show(mainwin_stime_min); - gtk_widget_show(mainwin_stime_sec); - } - widget_show(WIDGET(mainwin_minus_num)); widget_show(WIDGET(mainwin_10min_num)); widget_show(WIDGET(mainwin_min_num)); @@ -912,19 +901,11 @@ ui_skinned_textbox_set_text(mainwin_othertext, text); - gtk_widget_hide(mainwin_rate_text); - gtk_widget_hide(mainwin_freq_text); widget_hide(WIDGET(mainwin_monostereo)); - - if (bmp_active_skin->properties.mainwin_othertext_visible) - gtk_widget_show(mainwin_othertext); } else { - gtk_widget_show(mainwin_rate_text); - gtk_widget_show(mainwin_freq_text); widget_show(WIDGET(mainwin_monostereo)); - gtk_widget_hide(mainwin_othertext); } title = playlist_get_info_text(playlist); diff -r e6340ab753a1 -r bbca1e0e054a src/audacious/ui_playlist.c --- a/src/audacious/ui_playlist.c Sat Jul 07 18:56:43 2007 +0200 +++ b/src/audacious/ui_playlist.c Sun Jul 08 10:23:16 2007 +0200 @@ -1429,7 +1429,7 @@ if (force) { gdk_window_clear(playlistwin->window); GList *iter; - for (iter = GTK_FIXED (SKINNED_WINDOW(mainwin)->fixed)->children; iter; iter = g_list_next (iter)) { + for (iter = GTK_FIXED (SKINNED_WINDOW(playlistwin)->fixed)->children; iter; iter = g_list_next (iter)) { GtkFixedChild *child_data = (GtkFixedChild *) iter->data; GtkWidget *child = child_data->widget; gtk_widget_queue_draw(child);