comparison src/skins/ui_main.c @ 2620:2d6e08c81c09

add playlistwindow
author Tomasz Mon <desowin@gmail.com>
date Wed, 21 May 2008 21:35:11 +0200
parents ca6873c5a778
children 29526d9db9cc
comparison
equal deleted inserted replaced
2619:a066a10b2398 2620:2d6e08c81c09
52 #include "ui_dock.h" 52 #include "ui_dock.h"
53 #include "icons-stock.h" 53 #include "icons-stock.h"
54 #include "actions-mainwin.h" 54 #include "actions-mainwin.h"
55 #include "ui_manager.h" 55 #include "ui_manager.h"
56 #include "ui_equalizer.h" 56 #include "ui_equalizer.h"
57 #include "ui_playlist.h"
57 #if 0 58 #if 0
58 #include "configdb.h" 59 #include "configdb.h"
59 #include "dnd.h" 60 #include "dnd.h"
60 #include "input.h" 61 #include "input.h"
61 #include "main.h" 62 #include "main.h"
67 #include "ui_dock.h" 68 #include "ui_dock.h"
68 #include "ui_fileinfo.h" 69 #include "ui_fileinfo.h"
69 #include "ui_hints.h" 70 #include "ui_hints.h"
70 #include "ui_jumptotrack.h" 71 #include "ui_jumptotrack.h"
71 #include "ui_main_evlisteners.h" 72 #include "ui_main_evlisteners.h"
72 #include "ui_playlist.h"
73 #include "ui_preferences.h" 73 #include "ui_preferences.h"
74 #include "ui_skinselector.h" 74 #include "ui_skinselector.h"
75 #include "ui_urlopener.h" 75 #include "ui_urlopener.h"
76 #include "util.h" 76 #include "util.h"
77 #include "visualization.h" 77 #include "visualization.h"
83 #include "ui_skinned_number.h" 83 #include "ui_skinned_number.h"
84 #include "ui_skinned_horizontal_slider.h" 84 #include "ui_skinned_horizontal_slider.h"
85 #include "ui_skinned_menurow.h" 85 #include "ui_skinned_menurow.h"
86 #include "ui_skinned_playstatus.h" 86 #include "ui_skinned_playstatus.h"
87 #include "ui_skinned_monostereo.h" 87 #include "ui_skinned_monostereo.h"
88 #if 0
89 #include "ui_skinned_playlist.h" 88 #include "ui_skinned_playlist.h"
90 #endif
91 #include <audacious/plugin.h> 89 #include <audacious/plugin.h>
92 #include "skins_cfg.h" 90 #include "skins_cfg.h"
93 91
94 static GTimeVal cb_time; 92 static GTimeVal cb_time;
95 static const int TRISTATE_THRESHOLD = 200; 93 static const int TRISTATE_THRESHOLD = 200;
891 break; 889 break;
892 case GDK_Escape: 890 case GDK_Escape:
893 mainwin_minimize_cb(); 891 mainwin_minimize_cb();
894 break; 892 break;
895 case GDK_Tab: 893 case GDK_Tab:
896 #if 0
897 if (event->state & GDK_CONTROL_MASK) { 894 if (event->state & GDK_CONTROL_MASK) {
898 if (config.equalizer_visible) 895 if (config.equalizer_visible)
899 gtk_window_present(GTK_WINDOW(equalizerwin)); 896 gtk_window_present(GTK_WINDOW(equalizerwin));
900 else if (config.playlist_visible) 897 else if (config.playlist_visible)
901 gtk_window_present(GTK_WINDOW(playlistwin)); 898 gtk_window_present(GTK_WINDOW(playlistwin));
902 } 899 }
903 #endif
904 break; 900 break;
905 case GDK_c: 901 case GDK_c:
906 if (event->state & GDK_CONTROL_MASK) { 902 if (event->state & GDK_CONTROL_MASK) {
907 Playlist *playlist = aud_playlist_get_active(); 903 Playlist *playlist = aud_playlist_get_active();
908 gint pos = playlist_get_position(playlist); 904 gint pos = playlist_get_position(playlist);
1444 } 1440 }
1445 1441
1446 void 1442 void
1447 mainwin_pl_pushed(gboolean toggled) 1443 mainwin_pl_pushed(gboolean toggled)
1448 { 1444 {
1449 #if 0
1450 if (toggled) 1445 if (toggled)
1451 playlistwin_show(); 1446 playlistwin_show();
1452 else 1447 else
1453 playlistwin_hide(); 1448 playlistwin_hide();
1454 #endif
1455 } 1449 }
1456 1450
1457 gint 1451 gint
1458 mainwin_spos_frame_cb(gint pos) 1452 mainwin_spos_frame_cb(gint pos)
1459 { 1453 {