annotate audacious/hints.c @ 1731:7a5e936e4b7f trunk

[svn] - add missing 'test'
author nenolod
date Sat, 16 Sep 2006 22:53:47 -0700
parents 6e477dd65024
children f18a5b617c34
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5 * Copyright (C) 2003-2004 BMP development team.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
7 * Based on XMMS:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
8 * Copyright (C) 1998-2003 XMMS development team.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
9 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
10 * This program is free software; you can redistribute it and/or modify
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
11 * it under the terms of the GNU General Public License as published by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
12 * the Free Software Foundation; either version 2 of the License, or
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
13 * (at your option) any later version.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
14 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
15 * This program is distributed in the hope that it will be useful,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
18 * GNU General Public License for more details.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
19 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
20 * You should have received a copy of the GNU General Public License
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
21 * along with this program; if not, write to the Free Software
1459
705d4c089fce [svn] Fix postal code.
chainsaw
parents: 1458
diff changeset
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
23 */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
24
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
25 #include "hints.h"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
26
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
27 #include <glib.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
28 #include <gtk/gtk.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
29
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
30 #include "equalizer.h"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
31 #include "mainwin.h"
383
5c457dac866a [svn] - Rename playlistwin stuff to ui_playlist.*
nenolod
parents: 0
diff changeset
32 #include "ui_playlist.h"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
33
1640
6e477dd65024 [svn] - gtkquartz compatibility, pass 1
nenolod
parents: 1459
diff changeset
34 #include "platform/smartinclude.h"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
35
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
36 void
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
37 hint_set_always(gboolean always)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
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
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
42 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
43
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
44 void
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
45 hint_set_sticky(gboolean sticky)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
46 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
47 if (sticky) {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
48 gtk_window_stick(GTK_WINDOW(mainwin));
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
49 gtk_window_stick(GTK_WINDOW(equalizerwin));
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
50 gtk_window_stick(GTK_WINDOW(playlistwin));
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
51 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
52 else {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
53 gtk_window_unstick(GTK_WINDOW(mainwin));
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
54 gtk_window_unstick(GTK_WINDOW(equalizerwin));
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
55 gtk_window_unstick(GTK_WINDOW(playlistwin));
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
56 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
57 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
58