annotate audacious/hints.c @ 1269:681b629322c4 trunk

[svn] - hook up fileinfo box stuff
author nenolod
date Thu, 15 Jun 2006 22:23:39 -0700
parents 59739d266dba
children f12d7e208b43
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
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
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
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
34 #include <gdk/gdkx.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
35 #include <gdk/gdkprivate.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
36
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
37 void
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
38 hint_set_always(gboolean always)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
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
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
43 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
44
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
45 void
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
46 hint_set_sticky(gboolean sticky)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
47 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
48 if (sticky) {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
49 gtk_window_stick(GTK_WINDOW(mainwin));
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
50 gtk_window_stick(GTK_WINDOW(equalizerwin));
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
51 gtk_window_stick(GTK_WINDOW(playlistwin));
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
52 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
53 else {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
54 gtk_window_unstick(GTK_WINDOW(mainwin));
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
55 gtk_window_unstick(GTK_WINDOW(equalizerwin));
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
56 gtk_window_unstick(GTK_WINDOW(playlistwin));
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
57 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
58 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
59