Mercurial > audlegacy-plugins
annotate src/skins/ui_hints.c @ 3152:6f45c19b3f74
Revised and updated French translation.
| author | Stany Henry <StrassBoy@gmail.com> |
|---|---|
| date | Tue, 12 May 2009 11:58:33 +0200 |
| parents | b7ab90e4235e |
| children |
| rev | line source |
|---|---|
|
2626
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
1 /* Audacious - Cross-platform multimedia player |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
2 * Copyright (C) 2005-2007 Audacious development team |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
3 * |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
4 * Based on BMP: |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
5 * Copyright (C) 2003-2004 BMP development team. |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
6 * |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
7 * Based on XMMS: |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
8 * Copyright (C) 1998-2003 XMMS development team. |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
9 * |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
10 * This program is free software; you can redistribute it and/or modify |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
11 * it under the terms of the GNU General Public License as published by |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
12 * the Free Software Foundation; under version 3 of the License. |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
13 * |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
14 * This program is distributed in the hope that it will be useful, |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
17 * GNU General Public License for more details. |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
18 * |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
19 * You should have received a copy of the GNU General Public License |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
20 * along with this program. If not, see <http://www.gnu.org/licenses>. |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
21 * |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
22 * The Audacious team does not consider modular code linking to |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
23 * Audacious or using our public API to be a derived work. |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
24 */ |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
25 |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
26 #include "ui_hints.h" |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
27 |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
28 #include <glib.h> |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
29 #include <gtk/gtk.h> |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
30 |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
31 #include "ui_equalizer.h" |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
32 #include "ui_main.h" |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
33 #include "ui_playlist.h" |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
34 |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
35 #include "platform/smartinclude.h" |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
36 |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
37 void |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
38 hint_set_always(gboolean always) |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
39 { |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
40 gtk_window_set_keep_above(GTK_WINDOW(mainwin), always); |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
41 gtk_window_set_keep_above(GTK_WINDOW(equalizerwin), always); |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
42 gtk_window_set_keep_above(GTK_WINDOW(playlistwin), always); |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
43 } |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
44 |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
45 void |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
46 hint_set_sticky(gboolean sticky) |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
47 { |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
48 if (sticky) { |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
49 gtk_window_stick(GTK_WINDOW(mainwin)); |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
50 gtk_window_stick(GTK_WINDOW(equalizerwin)); |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
51 gtk_window_stick(GTK_WINDOW(playlistwin)); |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
52 } |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
53 else { |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
54 gtk_window_unstick(GTK_WINDOW(mainwin)); |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
55 gtk_window_unstick(GTK_WINDOW(equalizerwin)); |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
56 gtk_window_unstick(GTK_WINDOW(playlistwin)); |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
57 } |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
58 } |
|
b7ab90e4235e
remove more #if 0's, add ui_hints
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
59 |
