Mercurial > audlegacy
annotate audacious/hints.c @ 770:8c406d5708fd trunk
[svn] blah!
author | nenolod |
---|---|
date | Wed, 01 Mar 2006 10:26:30 -0800 |
parents | 59739d266dba |
children | f12d7e208b43 |
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 | |
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
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 |
34 #include <gdk/gdkx.h> | |
35 #include <gdk/gdkprivate.h> | |
36 | |
37 void | |
38 hint_set_always(gboolean always) | |
39 { | |
485
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(mainwin), 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(equalizerwin), always); |
59739d266dba
[svn] Convert Xlib stuff to GDK/GTK. This isn't entirely set in stone yet --
nenolod
parents:
383
diff
changeset
|
42 gtk_window_set_keep_above(GTK_WINDOW(playlistwin), always); |
0 | 43 } |
44 | |
45 void | |
46 hint_set_sticky(gboolean sticky) | |
47 { | |
48 if (sticky) { | |
49 gtk_window_stick(GTK_WINDOW(mainwin)); | |
50 gtk_window_stick(GTK_WINDOW(equalizerwin)); | |
51 gtk_window_stick(GTK_WINDOW(playlistwin)); | |
52 } | |
53 else { | |
54 gtk_window_unstick(GTK_WINDOW(mainwin)); | |
55 gtk_window_unstick(GTK_WINDOW(equalizerwin)); | |
56 gtk_window_unstick(GTK_WINDOW(playlistwin)); | |
57 } | |
58 } | |
59 |