annotate audacious/hints.c @ 2257:af716dc0cdb9 trunk

[svn] - do not create GtkAccelGroup anymore; use ui_manager_get_accel_group to get accelerator groups from ui_manager
author giacomo
date Thu, 04 Jan 2007 03:58:58 -0800
parents 4bc65cec8f7a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2252
4bc65cec8f7a [svn] Update copyright notices
kiyoshi
parents: 2237
diff changeset
1 /* Audacious - Cross-platform multimedia player
4bc65cec8f7a [svn] Update copyright notices
kiyoshi
parents: 2237
diff changeset
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
4bc65cec8f7a [svn] Update copyright notices
kiyoshi
parents: 2237
diff changeset
4 * Based on BMP:
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
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
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
13 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
14 * This program is distributed in the hope that it will be useful,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
17 * GNU General Public License for more details.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
18 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
19 * You should have received a copy of the GNU General Public License
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
20 * along with this program; if not, write to the Free Software
1459
705d4c089fce [svn] Fix postal code.
chainsaw
parents: 1458
diff changeset
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
22 */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
23
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
24 #include "hints.h"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
25
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
26 #include <glib.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
27 #include <gtk/gtk.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
28
2236
ae7c17c4ef8b [svn] - rename equalizer.c to ui_equalizer.c
nenolod
parents: 2105
diff changeset
29 #include "ui_equalizer.h"
2237
d507d2c1f75c [svn] - rename mainwin.c to ui_main.c and such
nenolod
parents: 2236
diff changeset
30 #include "ui_main.h"
383
5c457dac866a [svn] - Rename playlistwin stuff to ui_playlist.*
nenolod
parents: 0
diff changeset
31 #include "ui_playlist.h"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
32
1640
6e477dd65024 [svn] - gtkquartz compatibility, pass 1
nenolod
parents: 1459
diff changeset
33 #include "platform/smartinclude.h"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
34
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
35 void
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
36 hint_set_always(gboolean always)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
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
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
41 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
42
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
43 void
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
44 hint_set_sticky(gboolean sticky)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
45 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
46 if (sticky) {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
47 gtk_window_stick(GTK_WINDOW(mainwin));
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
48 gtk_window_stick(GTK_WINDOW(equalizerwin));
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
49 gtk_window_stick(GTK_WINDOW(playlistwin));
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
50 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
51 else {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
52 gtk_window_unstick(GTK_WINDOW(mainwin));
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
53 gtk_window_unstick(GTK_WINDOW(equalizerwin));
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
54 gtk_window_unstick(GTK_WINDOW(playlistwin));
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
55 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
56 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
57