changeset 3350:1292e4ca0f08 trunk

press ctrl+tab to switch between windows
author Tomasz Mon <desowin@gmail.com>
date Mon, 13 Aug 2007 18:49:34 +0200
parents 01a241d35146
children 7a4fcf84a34f
files src/audacious/ui_equalizer.c src/audacious/ui_main.c src/audacious/ui_playlist.c
diffstat 3 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_equalizer.c	Mon Aug 13 19:45:52 2007 +0900
+++ b/src/audacious/ui_equalizer.c	Mon Aug 13 18:49:34 2007 +0200
@@ -287,6 +287,11 @@
                       GdkEventKey * event,
                       gpointer data)
 {
+    if (event->keyval == GDK_Tab && event->state & GDK_CONTROL_MASK) {
+        gtk_window_present(GTK_WINDOW(playlistwin));
+        return TRUE;
+    }
+
     if (!cfg.equalizer_shaded) {
         gtk_widget_event(mainwin, (GdkEvent *) event);
         return TRUE;
--- a/src/audacious/ui_main.c	Mon Aug 13 19:45:52 2007 +0900
+++ b/src/audacious/ui_main.c	Mon Aug 13 18:49:34 2007 +0200
@@ -981,6 +981,10 @@
     case GDK_Escape:
         mainwin_minimize_cb();
         break;
+    case GDK_Tab:
+        if (event->state & GDK_CONTROL_MASK)
+            gtk_window_present(GTK_WINDOW(equalizerwin));
+        break;
     default:
         return FALSE;
     }
--- a/src/audacious/ui_playlist.c	Mon Aug 13 19:45:52 2007 +0900
+++ b/src/audacious/ui_playlist.c	Mon Aug 13 18:49:34 2007 +0200
@@ -1275,6 +1275,10 @@
     case GDK_Escape:
         mainwin_minimize_cb();
         break;
+    case GDK_Tab:
+        if (event->state & GDK_CONTROL_MASK)
+            gtk_window_present(GTK_WINDOW(mainwin));
+        break;
     default:
         return FALSE;
     }