Mercurial > audlegacy
comparison src/audacious/auddrct.c @ 4544:084dbc8d23da
removed variable "has_x11_connection" from main.c, needed to hookify some functions therefore
author | mf0102 <0102@gmx.at> |
---|---|
date | Mon, 12 May 2008 23:01:06 +0200 |
parents | 26209b646930 |
children | 11f7874f3a95 |
comparison
equal
deleted
inserted
replaced
4543:ed94ac6182df | 4544:084dbc8d23da |
---|---|
23 | 23 |
24 | 24 |
25 #include "main.h" | 25 #include "main.h" |
26 #include "input.h" | 26 #include "input.h" |
27 #include "playback.h" | 27 #include "playback.h" |
28 #include "ui_main.h" | |
29 #include "ui_playlist.h" | |
30 #include "ui_equalizer.h" | |
31 #include "ui_jumptotrack.h" | |
32 #include "auddrct.h" | 28 #include "auddrct.h" |
33 #include "playlist.h" | 29 #include "playlist.h" |
34 | 30 |
35 /* player */ | 31 /* player */ |
36 | 32 |
41 } | 37 } |
42 | 38 |
43 void | 39 void |
44 drct_eject ( void ) | 40 drct_eject ( void ) |
45 { | 41 { |
46 if (has_x11_connection) | 42 gboolean play_button = FALSE; |
47 mainwin_eject_pushed(); | 43 hook_call("filebrowser show", &play_button); |
48 return; | |
49 } | 44 } |
50 | 45 |
51 void | 46 void |
52 drct_jtf_show ( void ) | 47 drct_jtf_show ( void ) |
53 { | 48 { |
54 if (has_x11_connection) | 49 gboolean show = TRUE; |
55 ui_jump_to_track(); | 50 hook_call("ui jump to track show", &show); |
56 return; | |
57 } | 51 } |
58 | 52 |
59 gboolean | 53 gboolean |
60 drct_main_win_is_visible ( void ) | 54 drct_main_win_is_visible ( void ) |
61 { | 55 { |
63 } | 57 } |
64 | 58 |
65 void | 59 void |
66 drct_main_win_toggle ( gboolean show ) | 60 drct_main_win_toggle ( gboolean show ) |
67 { | 61 { |
68 if (has_x11_connection) | 62 hook_call("mainwin show", &show); |
69 mainwin_show(show); | |
70 return; | |
71 } | 63 } |
72 | 64 |
73 gboolean | 65 gboolean |
74 drct_eq_win_is_visible ( void ) | 66 drct_eq_win_is_visible ( void ) |
75 { | 67 { |
77 } | 69 } |
78 | 70 |
79 void | 71 void |
80 drct_eq_win_toggle ( gboolean show ) | 72 drct_eq_win_toggle ( gboolean show ) |
81 { | 73 { |
82 if (has_x11_connection) | 74 hook_call("equalizerwin show", &show); |
83 equalizerwin_show(show); | |
84 return; | |
85 } | 75 } |
86 | 76 |
87 gboolean | 77 gboolean |
88 drct_pl_win_is_visible ( void ) | 78 drct_pl_win_is_visible ( void ) |
89 { | 79 { |
91 } | 81 } |
92 | 82 |
93 void | 83 void |
94 drct_pl_win_toggle ( gboolean show ) | 84 drct_pl_win_toggle ( gboolean show ) |
95 { | 85 { |
96 if (has_x11_connection) { | 86 hook_call("playlistwin show", &show); |
97 if (show) | |
98 playlistwin_show(); | |
99 else | |
100 playlistwin_hide(); | |
101 } | |
102 return; | |
103 } | 87 } |
104 | 88 |
105 void drct_activate(void) | 89 void drct_activate(void) |
106 { | 90 { |
107 gtk_window_present(GTK_WINDOW(mainwin)); | 91 gtk_window_present(GTK_WINDOW(mainwin)); |