Mercurial > audlegacy
diff src/audacious/ui_main.c @ 2947:13591e28d89e trunk
cleanup
| author | Tomasz Mon <desowin@gmail.com> |
|---|---|
| date | Sun, 01 Jul 2007 12:52:58 +0200 |
| parents | 1a59a0ced6a8 |
| children | 7a88f6d9cd92 |
line wrap: on
line diff
--- a/src/audacious/ui_main.c Sun Jul 01 05:06:59 2007 -0500 +++ b/src/audacious/ui_main.c Sun Jul 01 12:52:58 2007 +0200 @@ -98,11 +98,6 @@ MAINWIN_SEEK_FWD }; -enum { - MAINWIN_VIS_ACTIVE_MAINWIN, MAINWIN_VIS_ACTIVE_PLAYLISTWIN -}; - - typedef struct _PlaybackInfo PlaybackInfo; struct _PlaybackInfo { @@ -150,7 +145,6 @@ static gboolean setting_volume = FALSE; -Vis *active_vis; Vis *mainwin_vis; SVis *mainwin_svis; @@ -323,12 +317,6 @@ } static void -mainwin_vis_set_active_vis(gint new_vis) -{ - active_vis = mainwin_vis; -} - -static void mainwin_vis_set_refresh(RefreshRate rate) { cfg.vis_refresh = rate; @@ -396,10 +384,10 @@ if (cfg.player_shaded && cfg.player_visible) svis_clear(mainwin_svis); else - vis_clear(active_vis); + vis_clear(mainwin_vis); } if (mode == VIS_ANALYZER || mode == VIS_SCOPE || mode == VIS_VOICEPRINT) { - vis_clear_data(active_vis); + vis_clear_data(mainwin_vis); svis_clear_data(mainwin_svis); } } @@ -980,7 +968,7 @@ playlistwin_hide_timer(); draw_main_window(TRUE); - vis_clear(active_vis); + vis_clear(mainwin_vis); } void @@ -1180,10 +1168,7 @@ widget_contains(WIDGET(mainwin_10min_num), event->x, event->y) || widget_contains(WIDGET(mainwin_min_num), event->x, event->y) || widget_contains(WIDGET(mainwin_10sec_num), event->x, event->y) || - widget_contains(WIDGET(mainwin_sec_num), event->x, event->y))// || - //widget_contains(WIDGET(mainwin_stime_min), event->x, event->y) || - //widget_contains(WIDGET(mainwin_stime_sec), event->x, event->y)) - { + widget_contains(WIDGET(mainwin_sec_num), event->x, event->y)) { change_timer_mode(); } } @@ -1959,9 +1944,8 @@ check_set( toggleaction_group_others , "show player" , TRUE ); if (cfg.player_shaded) - vis_clear_data(active_vis); - - mainwin_vis_set_active_vis(MAINWIN_VIS_ACTIVE_MAINWIN); + vis_clear_data(mainwin_vis); + mainwin_set_shape_mask(); if (cfg.show_wm_decorations) { @@ -2017,7 +2001,6 @@ gtk_widget_hide(mainwin); - mainwin_vis_set_active_vis(MAINWIN_VIS_ACTIVE_PLAYLISTWIN); cfg.player_visible = FALSE; } @@ -2915,7 +2898,6 @@ create_vis(&mainwin_wlist, mainwin_bg, mainwin->window, SKINNED_WINDOW(mainwin)->gc, 24, 43, 76, cfg.doublesize); mainwin_svis = create_svis(&mainwin_wlist, mainwin_bg, SKINNED_WINDOW(mainwin)->gc, 79, 5); - active_vis = mainwin_vis; mainwin_position = create_hslider(&mainwin_wlist, mainwin_bg, SKINNED_WINDOW(mainwin)->gc, 16, 72, 248,
