Mercurial > audlegacy
annotate audacious/hints.c @ 2204:ad13a4414f45 trunk
[svn] - Correctly set the size of playlistwin_list on startup/etc.
author | nhjm449 |
---|---|
date | Sat, 23 Dec 2006 00:20:59 -0800 |
parents | f18a5b617c34 |
children | ae7c17c4ef8b |
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 | |
2105
f18a5b617c34
[svn] - move to GPLv2-only. Based on my interpretation of the license, we are
nenolod
parents:
1640
diff
changeset
|
12 * the Free Software Foundation; under version 2 of the License. |
0 | 13 * |
14 * This program is distributed in the hope that it will be useful, | |
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 * GNU General Public License for more details. | |
18 * | |
19 * You should have received a copy of the GNU General Public License | |
20 * along with this program; if not, write to the Free Software | |
1459 | 21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
0 | 22 */ |
23 | |
24 #include "hints.h" | |
25 | |
26 #include <glib.h> | |
27 #include <gtk/gtk.h> | |
28 | |
29 #include "equalizer.h" | |
30 #include "mainwin.h" | |
383 | 31 #include "ui_playlist.h" |
0 | 32 |
1640 | 33 #include "platform/smartinclude.h" |
0 | 34 |
35 void | |
36 hint_set_always(gboolean always) | |
37 { | |
485
59739d266dba
[svn] Convert Xlib stuff to GDK/GTK. This isn't entirely set in stone yet --
nenolod
parents:
383
diff
changeset
|
38 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
|
39 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
|
40 gtk_window_set_keep_above(GTK_WINDOW(playlistwin), always); |
0 | 41 } |
42 | |
43 void | |
44 hint_set_sticky(gboolean sticky) | |
45 { | |
46 if (sticky) { | |
47 gtk_window_stick(GTK_WINDOW(mainwin)); | |
48 gtk_window_stick(GTK_WINDOW(equalizerwin)); | |
49 gtk_window_stick(GTK_WINDOW(playlistwin)); | |
50 } | |
51 else { | |
52 gtk_window_unstick(GTK_WINDOW(mainwin)); | |
53 gtk_window_unstick(GTK_WINDOW(equalizerwin)); | |
54 gtk_window_unstick(GTK_WINDOW(playlistwin)); | |
55 } | |
56 } | |
57 |