Mercurial > audlegacy
changeset 3000:bbca1e0e054a trunk
don't call gtk_widget_show/hide from func that's called every now and then
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Sun, 08 Jul 2007 10:23:16 +0200 |
parents | e6340ab753a1 |
children | 6d4b7b739232 |
files | src/audacious/playback.c src/audacious/ui_equalizer.c src/audacious/ui_main.c src/audacious/ui_playlist.c |
diffstat | 4 files changed, 13 insertions(+), 26 deletions(-) [+] |
line wrap: on
line diff
--- 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); }
--- 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(); }
--- 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);
--- 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);