Mercurial > audlegacy
annotate audacious/hints.c @ 2270:50dea14e2fa3 trunk
[svn] Serbian language upadated
author | kustodian |
---|---|
date | Thu, 04 Jan 2007 14:55:34 -0800 |
parents | 4bc65cec8f7a |
children |
rev | line source |
---|---|
2252 | 1 /* Audacious - Cross-platform multimedia player |
2 * Copyright (C) 2005-2007 Audacious development team | |
485
59739d266dba
[svn] Convert Xlib stuff to GDK/GTK. This isn't entirely set in stone yet --
nenolod
parents:
383
diff
changeset
|
3 * |
2252 | 4 * Based on BMP: |
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 | |
2236 | 29 #include "ui_equalizer.h" |
2237 | 30 #include "ui_main.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 |