Mercurial > audlegacy
changeset 3026:e9e925c3adb5
we don't need ui_vis_clear, it only caused problem
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Tue, 10 Jul 2007 17:37:37 +0200 |
parents | bd32633b4de2 |
children | d62ad9e400e3 739516e45635 |
files | src/audacious/ui_main.c src/audacious/ui_vis.c src/audacious/ui_vis.h |
diffstat | 3 files changed, 1 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/ui_main.c Tue Jul 10 17:08:38 2007 +0200 +++ b/src/audacious/ui_main.c Tue Jul 10 17:37:37 2007 +0200 @@ -394,7 +394,6 @@ if (cfg.player_shaded && cfg.player_visible) svis_clear(mainwin_svis); else { - ui_vis_clear(mainwin_vis); ui_vis_set_visible(mainwin_vis, FALSE); } } @@ -976,9 +975,8 @@ gtk_widget_hide(mainwin_othertext); playlistwin_hide_timer(); + ui_vis_clear_data(mainwin_vis); draw_main_window(TRUE); - - ui_vis_clear(mainwin_vis); } void
--- a/src/audacious/ui_vis.c Tue Jul 10 17:08:38 2007 +0200 +++ b/src/audacious/ui_vis.c Tue Jul 10 17:37:37 2007 +0200 @@ -590,13 +590,6 @@ gtk_widget_queue_resize(widget); } -void ui_vis_clear(GtkWidget *widget) { - UiVis *vis = UI_VIS (widget); - gdk_window_clear_area(widget->window, 0, - 0, vis->width, - vis->height); -} - void ui_vis_clear_data(GtkWidget *widget) { gint i; UiVis *vis = UI_VIS (widget);
--- a/src/audacious/ui_vis.h Tue Jul 10 17:08:38 2007 +0200 +++ b/src/audacious/ui_vis.h Tue Jul 10 17:37:37 2007 +0200 @@ -87,7 +87,6 @@ GtkType ui_vis_get_type(void); void ui_vis_set_vis(GtkWidget *widget, gint num); void ui_vis_clear_data(GtkWidget *widget); -void ui_vis_clear(GtkWidget *widget); void ui_vis_timeout_func(GtkWidget *widget, guchar * data); void ui_vis_set_visible(GtkWidget *widget, gboolean window_is_visible);