Mercurial > audlegacy
annotate audacious/hints.c @ 1802:687b63f7b18d trunk
[svn] Just saw that it's ordered by last name. Of cours, I was to blind
to see that and just added myself at the wrong place. oO
author | js |
---|---|
date | Wed, 04 Oct 2006 21:04:50 -0700 |
parents | 6e477dd65024 |
children | f18a5b617c34 |
rev | line source |
---|---|
485
59739d266dba
[svn] Convert Xlib stuff to GDK/GTK. This isn't entirely set in stone yet --
nenolod
parents:
383
diff
changeset
|
1 /* Audacious - the quite insane multimedia player. |
59739d266dba
[svn] Convert Xlib stuff to GDK/GTK. This isn't entirely set in stone yet --
nenolod
parents:
383
diff
changeset
|
2 * Copyright (C) 2005-2006 Audacious team |
59739d266dba
[svn] Convert Xlib stuff to GDK/GTK. This isn't entirely set in stone yet --
nenolod
parents:
383
diff
changeset
|
3 * |
59739d266dba
[svn] Convert Xlib stuff to GDK/GTK. This isn't entirely set in stone yet --
nenolod
parents:
383
diff
changeset
|
4 * BMP - Cross-platform multimedia player |
0 | 5 * Copyright (C) 2003-2004 BMP development team. |
6 * | |
7 * Based on XMMS: | |
8 * Copyright (C) 1998-2003 XMMS development team. | |
9 * | |
10 * This program is free software; you can redistribute it and/or modify | |
11 * it under the terms of the GNU General Public License as published by | |
12 * the Free Software Foundation; either version 2 of the License, or | |
13 * (at your option) any later version. | |
14 * | |
15 * This program is distributed in the hope that it will be useful, | |
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 * GNU General Public License for more details. | |
19 * | |
20 * You should have received a copy of the GNU General Public License | |
21 * along with this program; if not, write to the Free Software | |
1459 | 22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
0 | 23 */ |
24 | |
25 #include "hints.h" | |
26 | |
27 #include <glib.h> | |
28 #include <gtk/gtk.h> | |
29 | |
30 #include "equalizer.h" | |
31 #include "mainwin.h" | |
383 | 32 #include "ui_playlist.h" |
0 | 33 |
1640 | 34 #include "platform/smartinclude.h" |
0 | 35 |
36 void | |
37 hint_set_always(gboolean always) | |
38 { | |
485
59739d266dba
[svn] Convert Xlib stuff to GDK/GTK. This isn't entirely set in stone yet --
nenolod
parents:
383
diff
changeset
|
39 gtk_window_set_keep_above(GTK_WINDOW(mainwin), always); |
59739d266dba
[svn] Convert Xlib stuff to GDK/GTK. This isn't entirely set in stone yet --
nenolod
parents:
383
diff
changeset
|
40 gtk_window_set_keep_above(GTK_WINDOW(equalizerwin), always); |
59739d266dba
[svn] Convert Xlib stuff to GDK/GTK. This isn't entirely set in stone yet --
nenolod
parents:
383
diff
changeset
|
41 gtk_window_set_keep_above(GTK_WINDOW(playlistwin), always); |
0 | 42 } |
43 | |
44 void | |
45 hint_set_sticky(gboolean sticky) | |
46 { | |
47 if (sticky) { | |
48 gtk_window_stick(GTK_WINDOW(mainwin)); | |
49 gtk_window_stick(GTK_WINDOW(equalizerwin)); | |
50 gtk_window_stick(GTK_WINDOW(playlistwin)); | |
51 } | |
52 else { | |
53 gtk_window_unstick(GTK_WINDOW(mainwin)); | |
54 gtk_window_unstick(GTK_WINDOW(equalizerwin)); | |
55 gtk_window_unstick(GTK_WINDOW(playlistwin)); | |
56 } | |
57 } | |
58 |