annotate src/audacious/ui_hints.c @ 4545:c9be7256db08

we don't show builtin features anymore
author mf0102 <0102@gmx.at>
date Mon, 12 May 2008 23:06:39 +0200
parents a47288ced5d5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4504
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
1 /* Audacious - Cross-platform multimedia player
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
2 * Copyright (C) 2005-2007 Audacious development team
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
3 *
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
4 * Based on BMP:
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
5 * Copyright (C) 2003-2004 BMP development team.
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
6 *
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
7 * Based on XMMS:
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
8 * Copyright (C) 1998-2003 XMMS development team.
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
9 *
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
10 * This program is free software; you can redistribute it and/or modify
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
11 * it under the terms of the GNU General Public License as published by
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
12 * the Free Software Foundation; under version 3 of the License.
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
13 *
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
14 * This program is distributed in the hope that it will be useful,
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
17 * GNU General Public License for more details.
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
18 *
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
19 * You should have received a copy of the GNU General Public License
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
20 * along with this program. If not, see <http://www.gnu.org/licenses>.
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
21 *
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
22 * The Audacious team does not consider modular code linking to
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
23 * Audacious or using our public API to be a derived work.
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
24 */
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
25
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
26 #include "ui_hints.h"
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
27
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
28 #include <glib.h>
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
29 #include <gtk/gtk.h>
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
30
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
31 #include "ui_equalizer.h"
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
32 #include "ui_main.h"
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
33 #include "ui_playlist.h"
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
34
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
35 #include "platform/smartinclude.h"
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
36
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
37 void
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
38 hint_set_always(gboolean always)
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
39 {
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
40 gtk_window_set_keep_above(GTK_WINDOW(mainwin), always);
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
41 gtk_window_set_keep_above(GTK_WINDOW(equalizerwin), always);
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
42 gtk_window_set_keep_above(GTK_WINDOW(playlistwin), always);
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
43 }
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
44
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
45 void
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
46 hint_set_sticky(gboolean sticky)
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
47 {
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
48 if (sticky) {
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
49 gtk_window_stick(GTK_WINDOW(mainwin));
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
50 gtk_window_stick(GTK_WINDOW(equalizerwin));
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
51 gtk_window_stick(GTK_WINDOW(playlistwin));
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
52 }
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
53 else {
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
54 gtk_window_unstick(GTK_WINDOW(mainwin));
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
55 gtk_window_unstick(GTK_WINDOW(equalizerwin));
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
56 gtk_window_unstick(GTK_WINDOW(playlistwin));
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
57 }
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
58 }
a47288ced5d5 - renamed some files to reflect their UI contents
mf0102 <0102@gmx.at>
parents:
diff changeset
59