changeset 2338:d0a04f1ee732 trunk

[svn] - in playlistwin_hide(), pass focus to the player main window only if it's visible
author giacomo
date Mon, 15 Jan 2007 09:18:27 -0800
parents 7d1dc0ca6df8
children 9326f6a1f024
files ChangeLog src/audacious/ui_playlist.c
diffstat 2 files changed, 13 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Jan 15 08:51:37 2007 -0800
+++ b/ChangeLog	Mon Jan 15 09:18:27 2007 -0800
@@ -1,3 +1,11 @@
+2007-01-15 16:51:37 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [3684]
+  - special case for no uri schema
+  
+  trunk/src/audacious/vfs.c |    7 ++++++-
+  1 file changed, 6 insertions(+), 1 deletion(-)
+
+
 2007-01-15 16:48:46 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [3682]
   - warning fixes
--- a/src/audacious/ui_playlist.c	Mon Jan 15 08:51:37 2007 -0800
+++ b/src/audacious/ui_playlist.c	Mon Jan 15 09:18:27 2007 -0800
@@ -1811,8 +1811,11 @@
     tbutton_set_toggled(mainwin_pl, FALSE);
     cfg.playlist_visible = FALSE;
 
-    gtk_window_present(GTK_WINDOW(mainwin));
-    gtk_widget_grab_focus(mainwin);
+    if ( cfg.player_visible )
+    {
+      gtk_window_present(GTK_WINDOW(mainwin));
+      gtk_widget_grab_focus(mainwin);
+    }
 }
 
 void action_playlist_track_info(void)