Mercurial > audlegacy
changeset 2999:e6340ab753a1 trunk
replace calling redraw signals with gtk_widget_queue_draw()
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Sat, 07 Jul 2007 18:56:43 +0200 |
parents | c200d6764e91 |
children | bbca1e0e054a |
files | src/audacious/ui_equalizer.c src/audacious/ui_main.c src/audacious/ui_playlist.c |
diffstat | 3 files changed, 11 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/ui_equalizer.c Sat Jul 07 17:50:31 2007 +0200 +++ b/src/audacious/ui_equalizer.c Sat Jul 07 18:56:43 2007 +0200 @@ -330,10 +330,10 @@ gdk_window_clear(equalizerwin->window); 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; - g_signal_emit_by_name(child, "redraw"); + 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(); } @@ -838,7 +838,7 @@ draw_equalizer_window(TRUE); cfg.equalizer_visible = TRUE; UI_SKINNED_BUTTON(mainwin_eq)->inside = TRUE; - g_signal_emit_by_name(mainwin_eq, "redraw"); + gtk_widget_queue_draw(mainwin_eq); gtk_widget_show_all(equalizerwin); gtk_window_present(GTK_WINDOW(equalizerwin)); @@ -854,7 +854,7 @@ gtk_widget_hide(equalizerwin); cfg.equalizer_visible = FALSE; UI_SKINNED_BUTTON(mainwin_eq)->inside = FALSE; - g_signal_emit_by_name(mainwin_eq, "redraw"); + gtk_widget_queue_draw(mainwin_eq); } static EqualizerPreset *
--- a/src/audacious/ui_main.c Sat Jul 07 17:50:31 2007 +0200 +++ b/src/audacious/ui_main.c Sat Jul 07 18:56:43 2007 +0200 @@ -520,14 +520,12 @@ g_object_unref(img2x); g_object_unref(img); } - 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; - g_signal_emit_by_name(child, "redraw"); + gtk_widget_queue_draw(child); } - } else { for (wl = mainwin_wlist; wl; wl = g_list_next(wl)) {
--- a/src/audacious/ui_playlist.c Sat Jul 07 17:50:31 2007 +0200 +++ b/src/audacious/ui_playlist.c Sat Jul 07 18:56:43 2007 +0200 @@ -1429,10 +1429,10 @@ if (force) { gdk_window_clear(playlistwin->window); GList *iter; - for (iter = GTK_FIXED (SKINNED_WINDOW(playlistwin)->fixed)->children; iter; iter = g_list_next (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; - g_signal_emit_by_name(child, "redraw"); + gtk_widget_queue_draw(child); } } else { @@ -1791,7 +1791,7 @@ cfg.playlist_visible = TRUE; UI_SKINNED_BUTTON(mainwin_pl)->inside = TRUE; - g_signal_emit_by_name(mainwin_pl, "redraw"); + gtk_widget_queue_draw(mainwin_pl); playlistwin_set_toprow(0); playlist_check_pos_current(playlist_get_active()); @@ -1817,7 +1817,7 @@ gtk_widget_hide(playlistwin); cfg.playlist_visible = FALSE; UI_SKINNED_BUTTON(mainwin_pl)->inside = FALSE; - g_signal_emit_by_name(mainwin_pl, "redraw"); + gtk_widget_queue_draw(mainwin_pl); /* no point in probing for playlistwin_infopopup trigger when the playlistwin is hidden */ if ( playlistwin_infopopup_sid != 0 )