annotate src/skins/ui_dock.c @ 3159:1ffcad5f406c

import new skins plugin
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Fri, 22 May 2009 23:18:48 +0900
parents 8b97f9560dc3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2572
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
1 /* Audacious - Cross-platform multimedia player
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
2 * Copyright (C) 2005-2007 Audacious development team
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
3 *
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
4 * Based on BMP:
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
5 * Copyright (C) 2003-2004 BMP development team.
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
6 *
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
7 * Based on XMMS:
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
8 * Copyright (C) 1998-2003 XMMS development team.
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
9 *
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
10 * This program is free software; you can redistribute it and/or modify
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
11 * it under the terms of the GNU General Public License as published by
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
12 * the Free Software Foundation; under version 3 of the License.
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
13 *
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
14 * This program is distributed in the hope that it will be useful,
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
17 * GNU General Public License for more details.
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
18 *
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
19 * You should have received a copy of the GNU General Public License
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
20 * along with this program. If not, see <http://www.gnu.org/licenses>.
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
21 *
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
22 * The Audacious team does not consider modular code linking to
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
23 * Audacious or using our public API to be a derived work.
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
24 */
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
25
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
26 #include "ui_dock.h"
2583
294232665cb0 more work on config
Tomasz Mon <desowin@gmail.com>
parents: 2572
diff changeset
27 #include "skins_cfg.h"
2572
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
28 #include <gdk/gdk.h>
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
29 #include <stdlib.h>
2971
3134a0987162 - changed include path from audacious to audlegacy.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 2583
diff changeset
30 #include <audlegacy/plugin.h>
2572
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
31 #include "ui_skinned_window.h"
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
32
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
33 #include "platform/smartinclude.h"
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
34
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
35 static GList *dock_window_list = NULL;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
36
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
37 struct _DockedWindow {
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
38 GtkWindow *w;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
39 gint offset_x, offset_y;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
40 };
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
41
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
42 typedef struct _DockedWindow DockedWindow;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
43
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
44
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
45 static gint
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
46 docked_list_compare(DockedWindow * a, DockedWindow * b)
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
47 {
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
48 if (a->w == b->w)
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
49 return 0;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
50 return 1;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
51 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
52
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
53 static void
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
54 snap_edge(gint * x, gint * y, gint w, gint h, gint bx, gint by,
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
55 gint bw, gint bh)
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
56 {
2583
294232665cb0 more work on config
Tomasz Mon <desowin@gmail.com>
parents: 2572
diff changeset
57 gint sd = config.snap_distance;
2572
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
58
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
59 if ((*x + w > bx - sd) && (*x + w < bx + sd) &&
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
60 (*y > by - h - sd) && (*y < by + bh + sd)) {
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
61 *x = bx - w;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
62 if ((*y > by - sd) && (*y < by + sd))
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
63 *y = by;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
64 if ((*y + h > by + bh - sd) && (*y + h < by + bh + sd))
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
65 *y = by + bh - h;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
66 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
67 if ((*x > bx + bw - sd) && (*x < bx + bw + sd) &&
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
68 (*y > by - h - sd) && (*y < by + bh + sd)) {
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
69 *x = bx + bw;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
70 if ((*y > by - sd) && (*y < by + sd))
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
71 *y = by;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
72 if ((*y + h > by + bh - sd) && (*y + h < by + bh + sd))
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
73 *y = by + bh - h;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
74 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
75 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
76
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
77 static void
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
78 snap(gint * x, gint * y, gint w, gint h, gint bx, gint by, gint bw, gint bh)
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
79 {
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
80 snap_edge(x, y, w, h, bx, by, bw, bh);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
81 snap_edge(y, x, h, w, by, bx, bh, bw);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
82 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
83
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
84 static void
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
85 calc_snap_offset(GList * dlist, GList * wlist, gint x, gint y,
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
86 gint * off_x, gint * off_y)
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
87 {
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
88 gint nx, ny, nw, nh, sx, sy, sw, sh;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
89 GtkWindow *w;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
90 GList *dnode, *wnode;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
91 DockedWindow temp, *dw;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
92
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
93
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
94 *off_x = 0;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
95 *off_y = 0;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
96
2583
294232665cb0 more work on config
Tomasz Mon <desowin@gmail.com>
parents: 2572
diff changeset
97 if (!config.snap_windows)
2572
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
98 return;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
99
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
100 /*
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
101 * FIXME: Why not break out of the loop when we find someting
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
102 * to snap to?
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
103 */
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
104 for (dnode = dlist; dnode; dnode = g_list_next(dnode)) {
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
105 dw = dnode->data;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
106 gtk_window_get_size(dw->w, &nw, &nh);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
107
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
108 nx = dw->offset_x + *off_x + x;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
109 ny = dw->offset_y + *off_y + y;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
110
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
111 /* Snap to screen edges */
2583
294232665cb0 more work on config
Tomasz Mon <desowin@gmail.com>
parents: 2572
diff changeset
112 if (abs(nx) < config.snap_distance)
2572
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
113 *off_x -= nx;
2583
294232665cb0 more work on config
Tomasz Mon <desowin@gmail.com>
parents: 2572
diff changeset
114 if (abs(ny) < config.snap_distance)
2572
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
115 *off_y -= ny;
2583
294232665cb0 more work on config
Tomasz Mon <desowin@gmail.com>
parents: 2572
diff changeset
116 if (abs(nx + nw - gdk_screen_width()) < config.snap_distance)
2572
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
117 *off_x -= nx + nw - gdk_screen_width();
2583
294232665cb0 more work on config
Tomasz Mon <desowin@gmail.com>
parents: 2572
diff changeset
118 if (abs(ny + nh - gdk_screen_height()) < config.snap_distance)
2572
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
119 *off_y -= ny + nh - gdk_screen_height();
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
120
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
121 /* Snap to other windows */
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
122 for (wnode = wlist; wnode; wnode = g_list_next(wnode)) {
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
123 temp.w = wnode->data;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
124 if (g_list_find_custom
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
125 (dlist, &temp, (GCompareFunc) docked_list_compare))
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
126 /* These windows are already docked */
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
127 continue;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
128
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
129 w = GTK_WINDOW(wnode->data);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
130 gtk_window_get_position(w, &sx, &sy);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
131 gtk_window_get_size(w, &sw, &sh);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
132
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
133 nx = dw->offset_x + *off_x + x;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
134 ny = dw->offset_y + *off_y + y;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
135
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
136 snap(&nx, &ny, nw, nh, sx, sy, sw, sh);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
137
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
138 *off_x += nx - (dw->offset_x + *off_x + x);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
139 *off_y += ny - (dw->offset_y + *off_y + y);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
140 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
141 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
142 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
143
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
144
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
145 static gboolean
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
146 is_docked(gint a_x, gint a_y, gint a_w, gint a_h,
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
147 gint b_x, gint b_y, gint b_w, gint b_h)
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
148 {
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
149 if (((a_x == b_x + b_w) || (a_x + a_w == b_x)) &&
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
150 (b_y + b_h >= a_y) && (b_y <= a_y + a_h))
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
151 return TRUE;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
152
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
153 if (((a_y == b_y + b_h) || (a_y + a_h == b_y)) &&
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
154 (b_x >= a_x - b_w) && (b_x <= a_x + a_w))
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
155 return TRUE;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
156
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
157 return FALSE;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
158 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
159
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
160 /*
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
161 * Builds a list of all windows that are docked to the window "w".
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
162 * Recursively adds all windows that are docked to the windows that are
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
163 * docked to "w" and so on...
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
164 * FIXME: init_off_? ?
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
165 */
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
166
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
167 static GList *
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
168 get_docked_list(GList * dlist, GList * wlist, GtkWindow * w,
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
169 gint init_off_x, gint init_off_y)
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
170 {
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
171 GList *node;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
172 DockedWindow *dwin, temp;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
173 gint w_x, w_y, w_width, w_height;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
174 gint t_x, t_y, t_width, t_height;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
175
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
176
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
177 gtk_window_get_position(w, &w_x, &w_y);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
178 gtk_window_get_size(w, &w_width, &w_height);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
179 if (!dlist) {
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
180 dwin = g_new0(DockedWindow, 1);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
181 dwin->w = w;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
182 dlist = g_list_append(dlist, dwin);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
183 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
184
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
185 for (node = wlist; node; node = g_list_next(node)) {
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
186 temp.w = node->data;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
187 if (g_list_find_custom
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
188 (dlist, &temp, (GCompareFunc) docked_list_compare))
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
189 continue;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
190
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
191 gtk_window_get_position(GTK_WINDOW(node->data), &t_x, &t_y);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
192 gtk_window_get_size(GTK_WINDOW(node->data), &t_width, &t_height);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
193 if (is_docked
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
194 (w_x, w_y, w_width, w_height, t_x, t_y, t_width, t_height)) {
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
195 dwin = g_new0(DockedWindow, 1);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
196 dwin->w = node->data;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
197
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
198 dwin->offset_x = t_x - w_x + init_off_x;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
199 dwin->offset_y = t_y - w_y + init_off_y;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
200
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
201 dlist = g_list_append(dlist, dwin);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
202
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
203 dlist =
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
204 get_docked_list(dlist, wlist, dwin->w, dwin->offset_x,
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
205 dwin->offset_y);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
206 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
207 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
208 return dlist;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
209 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
210
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
211 static void
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
212 free_docked_list(GList * dlist)
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
213 {
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
214 GList *node;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
215
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
216 for (node = dlist; node; node = g_list_next(node))
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
217 g_free(node->data);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
218 g_list_free(dlist);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
219 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
220
3159
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
221 static void move_skinned_window (SkinnedWindow * window, int x, int y)
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
222 {
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
223 gtk_window_move (GTK_WINDOW (window), x, y);
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
224
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
225 window->x = x;
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
226 window->y = y;
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
227
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
228 switch (window->type)
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
229 {
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
230 case WINDOW_MAIN:
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
231 config.player_x = x;
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
232 config.player_y = y;
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
233 break;
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
234 case WINDOW_EQ:
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
235 config.equalizer_x = x;
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
236 config.equalizer_y = y;
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
237 break;
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
238 case WINDOW_PLAYLIST:
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
239 config.playlist_x = x;
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
240 config.playlist_y = y;
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
241 break;
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
242 }
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
243 }
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
244
2572
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
245 static void
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
246 docked_list_move(GList * list, gint x, gint y)
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
247 {
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
248 GList *node;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
249 DockedWindow *dw;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
250
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
251 for (node = list; node; node = g_list_next(node)) {
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
252 dw = node->data;
3159
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
253 move_skinned_window (SKINNED_WINDOW (dw->w), x + dw->offset_x,
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
254 y + dw->offset_y);
2572
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
255 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
256 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
257
3158
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
258 void dock_window_resize (GtkWindow * widget, int width, int height) {
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
259 GdkGeometry hints;
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
260 hints.min_width = width;
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
261 hints.min_height = height;
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
262 hints.max_width = width;
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
263 hints.max_height = height;
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
264 gtk_window_resize (widget, width, height);
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
265 gtk_window_set_geometry_hints (widget, 0, & hints,
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
266 GDK_HINT_MIN_SIZE | GDK_HINT_MAX_SIZE);
2572
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
267 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
268
3158
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
269 static void move_attached (GtkWindow * window, GList * * others, int offset) {
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
270 int x, y, width, height, x2, y2;
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
271 GList * move, * scan, * next;
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
272 gtk_window_get_position (window, & x, & y);
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
273 gtk_window_get_size (window, & width, & height);
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
274 move = 0;
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
275 for (scan = * others; scan; scan = next) {
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
276 next = g_list_next (scan);
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
277 gtk_window_get_position (scan->data, & x2, & y2);
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
278 if (y2 == y + height) {
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
279 * others = g_list_remove_link (* others, scan);
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
280 move = g_list_concat (move, scan);
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
281 }
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
282 }
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
283 for (; move; move = g_list_delete_link (move, move))
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
284 move_attached (move->data, others, offset);
3159
1ffcad5f406c import new skins plugin
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 3158
diff changeset
285 move_skinned_window (SKINNED_WINDOW (window), x, y + offset);
3158
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
286 }
2572
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
287
3158
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
288 void dock_shade (GList * window_list, GtkWindow * window, int new_height) {
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
289 int x, y, width, height, x2, y2;
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
290 GList * move, * others, * scan, * next;
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
291 if (! config.show_wm_decorations) {
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
292 gtk_window_get_position (window, & x, & y);
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
293 gtk_window_get_size (window, & width, & height);
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
294 others = g_list_copy (window_list);
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
295 others = g_list_remove (others, window);
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
296 move = 0;
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
297 for (scan = others; scan; scan = next) {
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
298 next = g_list_next (scan);
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
299 gtk_window_get_position (scan->data, & x2, & y2);
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
300 if (y2 == y + height) {
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
301 others = g_list_remove_link (others, scan);
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
302 move = g_list_concat (move, scan);
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
303 }
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
304 }
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
305 for (; move; move = g_list_delete_link (move, move))
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
306 move_attached (move->data, & others, new_height - height);
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
307 g_list_free (others);
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
308 }
8b97f9560dc3 More clean-up of roll-up code (should fix bug #37; if not, it's a WM problem).
John Lindgren <john.lindgren@tds.net>
parents: 3108
diff changeset
309 dock_window_resize (window, width, new_height);
2572
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
310 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
311
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
312 void
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
313 dock_move_press(GList * window_list, GtkWindow * w,
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
314 GdkEventButton * event, gboolean move_list)
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
315 {
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
316 gint mx, my;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
317 DockedWindow *dwin;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
318
2583
294232665cb0 more work on config
Tomasz Mon <desowin@gmail.com>
parents: 2572
diff changeset
319 if (config.show_wm_decorations)
2572
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
320 return;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
321
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
322 gtk_window_present(w);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
323 mx = event->x;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
324 my = event->y;
3017
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2971
diff changeset
325 g_object_set_data(G_OBJECT(w), "move_offset_x", GINT_TO_POINTER(mx));
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2971
diff changeset
326 g_object_set_data(G_OBJECT(w), "move_offset_y", GINT_TO_POINTER(my));
2572
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
327 if (move_list)
3017
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2971
diff changeset
328 g_object_set_data(G_OBJECT(w), "docked_list",
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2971
diff changeset
329 get_docked_list(NULL, window_list, w, 0, 0));
2572
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
330 else {
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
331 dwin = g_new0(DockedWindow, 1);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
332 dwin->w = w;
3017
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2971
diff changeset
333 g_object_set_data(G_OBJECT(w), "docked_list",
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2971
diff changeset
334 g_list_append(NULL, dwin));
2572
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
335 }
3017
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2971
diff changeset
336 g_object_set_data(G_OBJECT(w), "window_list", window_list);
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2971
diff changeset
337 g_object_set_data(G_OBJECT(w), "is_moving", GINT_TO_POINTER(1));
2572
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
338 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
339
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
340 void
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
341 dock_move_motion(GtkWindow * w, GdkEventMotion * event)
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
342 {
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
343 gint offset_x, offset_y, x, y;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
344 GList *dlist;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
345 GList *window_list;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
346
3017
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2971
diff changeset
347 if (!g_object_get_data(G_OBJECT(w), "is_moving"))
2572
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
348 return;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
349
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
350 offset_x =
3017
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2971
diff changeset
351 GPOINTER_TO_INT(g_object_get_data(G_OBJECT(w), "move_offset_x"));
2572
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
352 offset_y =
3017
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2971
diff changeset
353 GPOINTER_TO_INT(g_object_get_data(G_OBJECT(w), "move_offset_y"));
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2971
diff changeset
354 dlist = g_object_get_data(G_OBJECT(w), "docked_list");
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2971
diff changeset
355 window_list = g_object_get_data(G_OBJECT(w), "window_list");
2572
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
356
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
357 x = event->x_root - offset_x;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
358 y = event->y_root - offset_y;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
359
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
360 calc_snap_offset(dlist, window_list, x, y, &offset_x, &offset_y);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
361 x += offset_x;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
362 y += offset_y;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
363
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
364 docked_list_move(dlist, x, y);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
365 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
366
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
367 void
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
368 dock_move_release(GtkWindow * w)
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
369 {
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
370 GList *dlist;
3017
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2971
diff changeset
371 g_object_set_data(G_OBJECT(w), "is_moving", NULL);
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2971
diff changeset
372 g_object_set_data(G_OBJECT(w), "move_offset_x", NULL);
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2971
diff changeset
373 g_object_set_data(G_OBJECT(w), "move_offset_y", NULL);
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2971
diff changeset
374 if ((dlist = g_object_get_data(G_OBJECT(w), "docked_list")) != NULL)
2572
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
375 free_docked_list(dlist);
3017
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2971
diff changeset
376 g_object_set_data(G_OBJECT(w), "docked_list", NULL);
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2971
diff changeset
377 g_object_set_data(G_OBJECT(w), "window_list", NULL);
2572
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
378 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
379
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
380 gboolean
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
381 dock_is_moving(GtkWindow * w)
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
382 {
3017
963796db51ea Don't use deprecated gtk macros and types
Tomasz Mon <desowin@gmail.com>
parents: 2971
diff changeset
383 if (g_object_get_data(G_OBJECT(w), "is_moving"))
2572
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
384 return TRUE;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
385 return FALSE;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
386 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
387
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
388 GList *
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
389 dock_add_window(GList * list, GtkWindow * window)
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
390 {
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
391 return g_list_append(list, window);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
392 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
393
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
394 GList *
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
395 dock_remove_window(GList * list, GtkWindow * window)
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
396 {
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
397 return g_list_remove(list, window);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
398 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
399
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
400 GList *
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
401 dock_window_set_decorated(GList * list, GtkWindow * window,
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
402 gboolean decorated)
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
403 {
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
404 if (gtk_window_get_decorated(window) == decorated)
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
405 return list;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
406
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
407 if (decorated)
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
408 list = dock_remove_window(list, window);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
409 else
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
410 list = dock_add_window(list, window);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
411
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
412 gtk_window_set_decorated(window, decorated);
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
413
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
414 return list;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
415 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
416
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
417 GList *
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
418 get_dock_window_list() {
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
419 return dock_window_list;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
420 }
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
421
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
422 void
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
423 set_dock_window_list(GList * list) {
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
424 dock_window_list = list;
d0daee216c8d stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
425 }