diff src/audacious/ui_equalizer.c @ 4117:a5779105e6d2

on ctrl-tab switch only between visible windows (Bugzilla #14)
author Tomasz Mon <desowin@gmail.com>
date Tue, 25 Dec 2007 16:03:27 +0100
parents 7b9d5718a6dc
children 51641a875a01
line wrap: on
line diff
--- a/src/audacious/ui_equalizer.c	Tue Dec 25 19:15:44 2007 +0900
+++ b/src/audacious/ui_equalizer.c	Tue Dec 25 16:03:27 2007 +0100
@@ -288,7 +288,10 @@
                       gpointer data)
 {
     if (event->keyval == GDK_Tab && event->state & GDK_CONTROL_MASK) {
-	playlistwin_show();
+        if (cfg.playlist_visible)
+            gtk_window_present(GTK_WINDOW(playlistwin));
+        else if (cfg.player_visible)
+            gtk_window_present(GTK_WINDOW(mainwin));
         return TRUE;
     }