# HG changeset patch # User nhjm449 # Date 1156906537 25200 # Node ID dcd9936d506afd120cbfc1516889c6ce2450f289 # Parent 57676c0f2f3356719852f013509abcab3ecd7115 [svn] - Add ability to show/hide main player window. diff -r 57676c0f2f33 -r dcd9936d506a ChangeLog --- a/ChangeLog Tue Aug 29 11:35:30 2006 -0700 +++ b/ChangeLog Tue Aug 29 19:55:37 2006 -0700 @@ -1,3 +1,12 @@ +2006-08-29 18:35:30 +0000 Yoshiki Yazawa + revision [2145] + - prevents input_check_file() working on loading playlist. + + + Changes: Modified: + +2 -0 trunk/audacious/playlist.c + + 2006-08-28 18:03:58 +0000 Yoshiki Yazawa revision [2143] - playlist_container_find() must check if ext is 1, besides NULL. diff -r 57676c0f2f33 -r dcd9936d506a audacious/mainwin.c --- a/audacious/mainwin.c Tue Aug 29 11:35:30 2006 -0700 +++ b/audacious/mainwin.c Tue Aug 29 19:55:37 2006 -0700 @@ -406,6 +406,8 @@ /* View submenu */ GtkItemFactoryEntry mainwin_view_menu_entries[] = { + {N_("/Show Player"), "M", mainwin_general_menu_callback, + MAINWIN_GENERAL_SHOWMWIN, "", NULL}, {N_("/Show Playlist Editor"), "E", mainwin_general_menu_callback, MAINWIN_GENERAL_SHOWPLWIN, "", NULL}, {N_("/Show Equalizer"), "G", mainwin_general_menu_callback, @@ -2389,6 +2391,8 @@ { cfg.player_visible = TRUE; + check_set(mainwin_view_menu, "/Show Player", TRUE); + if (cfg.player_shaded) vis_clear_data(active_vis); @@ -2437,6 +2441,8 @@ GdkGC *gc; GdkColor pattern; + check_set(mainwin_view_menu, "/Show Player", FALSE); + if (cfg.player_shaded) svis_clear_data(mainwin_svis); @@ -2646,6 +2652,9 @@ case MAINWIN_GENERAL_FOCUSPLWIN: gtk_window_present(GTK_WINDOW(playlistwin)); break; + case MAINWIN_GENERAL_SHOWMWIN: + mainwin_show(GTK_CHECK_MENU_ITEM(item)->active); + break; case MAINWIN_GENERAL_SHOWPLWIN: if (GTK_CHECK_MENU_ITEM(item)->active) playlistwin_show();