changeset 1608:dcd9936d506a trunk

[svn] - Add ability to show/hide main player window.
author nhjm449
date Tue, 29 Aug 2006 19:55:37 -0700
parents 57676c0f2f33
children fb2ac7c9e096
files ChangeLog audacious/mainwin.c
diffstat 2 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 <yaz@cc.rim.or.jp>
+  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 <yaz@cc.rim.or.jp>
   revision [2143]
   - playlist_container_find() must check if ext is 1, besides NULL.
--- 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"), "<alt>M", mainwin_general_menu_callback,
+     MAINWIN_GENERAL_SHOWMWIN, "<ToggleItem>", NULL},
     {N_("/Show Playlist Editor"), "<alt>E", mainwin_general_menu_callback,
      MAINWIN_GENERAL_SHOWPLWIN, "<ToggleItem>", NULL},
     {N_("/Show Equalizer"), "<alt>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();