]> Dogcows Code - chaz/openbox/blob - openbox/config.c
add noStrut option to dock and fix up rc.xsd, some options were in the wrong section...
[chaz/openbox] / openbox / config.c
1 /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
2
3 config.c for the Openbox window manager
4 Copyright (c) 2004 Mikael Magnusson
5 Copyright (c) 2003 Ben Jansens
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 See the COPYING file for a copy of the GNU General Public License.
18 */
19
20 #include "config.h"
21 #include "keyboard.h"
22 #include "mouse.h"
23 #include "prop.h"
24 #include "translate.h"
25 #include "parser/parse.h"
26 #include "openbox.h"
27
28 gboolean config_focus_new;
29 gboolean config_focus_follow;
30 guint config_focus_delay;
31 gboolean config_focus_raise;
32 gboolean config_focus_last;
33
34 ObPlacePolicy config_place_policy;
35
36 gchar *config_theme;
37 gboolean config_theme_keepborder;
38
39 gchar *config_title_layout;
40
41 gint config_desktops_num;
42 GSList *config_desktops_names;
43 gint config_screen_firstdesk;
44
45 gboolean config_resize_redraw;
46 gboolean config_resize_four_corners;
47 gint config_resize_popup_show;
48 gint config_resize_popup_pos;
49
50 ObStackingLayer config_dock_layer;
51 gboolean config_dock_floating;
52 ObDirection config_dock_pos;
53 gint config_dock_x;
54 gint config_dock_y;
55 ObOrientation config_dock_orient;
56 gboolean config_dock_hide;
57 guint config_dock_hide_delay;
58 guint config_dock_app_move_button;
59 guint config_dock_app_move_modifiers;
60
61 guint config_keyboard_reset_keycode;
62 guint config_keyboard_reset_state;
63
64 gint config_mouse_threshold;
65 gint config_mouse_dclicktime;
66
67 gboolean config_menu_warppointer;
68 gboolean config_menu_xorstyle;
69 guint config_menu_hide_delay;
70 gboolean config_menu_client_list_icons;
71
72 GSList *config_menu_files;
73
74 gint config_resist_win;
75 gint config_resist_edge;
76
77 gboolean config_resist_layers_below;
78
79 /*
80
81 <keybind key="C-x">
82 <action name="ChangeDesktop">
83 <desktop>3</desktop>
84 </action>
85 </keybind>
86
87 */
88
89 static void parse_key(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
90 GList *keylist)
91 {
92 gchar *key;
93 ObAction *action;
94 xmlNodePtr n, nact;
95 GList *it;
96
97 if ((n = parse_find_node("chainQuitKey", node))) {
98 key = parse_string(doc, n);
99 translate_key(key, &config_keyboard_reset_state,
100 &config_keyboard_reset_keycode);
101 g_free(key);
102 }
103
104 n = parse_find_node("keybind", node);
105 while (n) {
106 if (parse_attr_string("key", n, &key)) {
107 keylist = g_list_append(keylist, key);
108
109 parse_key(i, doc, n->children, keylist);
110
111 it = g_list_last(keylist);
112 g_free(it->data);
113 keylist = g_list_delete_link(keylist, it);
114 }
115 n = parse_find_node("keybind", n->next);
116 }
117 if (keylist) {
118 nact = parse_find_node("action", node);
119 while (nact) {
120 if ((action = action_parse(i, doc, nact,
121 OB_USER_ACTION_KEYBOARD_KEY)))
122 keyboard_bind(keylist, action);
123 nact = parse_find_node("action", nact->next);
124 }
125 }
126 }
127
128 static void parse_keyboard(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
129 gpointer d)
130 {
131 keyboard_unbind_all();
132
133 parse_key(i, doc, node->children, NULL);
134 }
135
136 /*
137
138 <context name="Titlebar">
139 <mousebind button="Left" action="Press">
140 <action name="Raise"></action>
141 </mousebind>
142 </context>
143
144 */
145
146 static void parse_mouse(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
147 gpointer d)
148 {
149 xmlNodePtr n, nbut, nact;
150 gchar *buttonstr;
151 gchar *contextstr;
152 ObUserAction uact;
153 ObMouseAction mact;
154 ObAction *action;
155
156 mouse_unbind_all();
157
158 node = node->children;
159
160 if ((n = parse_find_node("dragThreshold", node)))
161 config_mouse_threshold = parse_int(doc, n);
162 if ((n = parse_find_node("doubleClickTime", node)))
163 config_mouse_dclicktime = parse_int(doc, n);
164
165 n = parse_find_node("context", node);
166 while (n) {
167 if (!parse_attr_string("name", n, &contextstr))
168 goto next_n;
169 nbut = parse_find_node("mousebind", n->children);
170 while (nbut) {
171 if (!parse_attr_string("button", nbut, &buttonstr))
172 goto next_nbut;
173 if (parse_attr_contains("press", nbut, "action")) {
174 uact = OB_USER_ACTION_MOUSE_PRESS;
175 mact = OB_MOUSE_ACTION_PRESS;
176 } else if (parse_attr_contains("release", nbut, "action")) {
177 uact = OB_USER_ACTION_MOUSE_RELEASE;
178 mact = OB_MOUSE_ACTION_RELEASE;
179 } else if (parse_attr_contains("click", nbut, "action")) {
180 uact = OB_USER_ACTION_MOUSE_CLICK;
181 mact = OB_MOUSE_ACTION_CLICK;
182 } else if (parse_attr_contains("doubleclick", nbut,"action")) {
183 uact = OB_USER_ACTION_MOUSE_DOUBLE_CLICK;
184 mact = OB_MOUSE_ACTION_DOUBLE_CLICK;
185 } else if (parse_attr_contains("drag", nbut, "action")) {
186 uact = OB_USER_ACTION_MOUSE_MOTION;
187 mact = OB_MOUSE_ACTION_MOTION;
188 } else
189 goto next_nbut;
190 nact = parse_find_node("action", nbut->children);
191 while (nact) {
192 if ((action = action_parse(i, doc, nact, uact)))
193 mouse_bind(buttonstr, contextstr, mact, action);
194 nact = parse_find_node("action", nact->next);
195 }
196 g_free(buttonstr);
197 next_nbut:
198 nbut = parse_find_node("mousebind", nbut->next);
199 }
200 g_free(contextstr);
201 next_n:
202 n = parse_find_node("context", n->next);
203 }
204 }
205
206 static void parse_focus(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
207 gpointer d)
208 {
209 xmlNodePtr n;
210
211 node = node->children;
212
213 if ((n = parse_find_node("focusNew", node)))
214 config_focus_new = parse_bool(doc, n);
215 if ((n = parse_find_node("followMouse", node)))
216 config_focus_follow = parse_bool(doc, n);
217 if ((n = parse_find_node("focusDelay", node)))
218 config_focus_delay = parse_int(doc, n) * 1000;
219 if ((n = parse_find_node("raiseOnFocus", node)))
220 config_focus_raise = parse_bool(doc, n);
221 if ((n = parse_find_node("focusLast", node)))
222 config_focus_last = parse_bool(doc, n);
223 }
224
225 static void parse_placement(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
226 gpointer d)
227 {
228 xmlNodePtr n;
229
230 node = node->children;
231
232 if ((n = parse_find_node("policy", node)))
233 if (parse_contains("UnderMouse", doc, n))
234 config_place_policy = OB_PLACE_POLICY_MOUSE;
235 }
236
237 static void parse_theme(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
238 gpointer d)
239 {
240 xmlNodePtr n;
241
242 node = node->children;
243
244 if ((n = parse_find_node("name", node))) {
245 gchar *c;
246
247 g_free(config_theme);
248 c = parse_string(doc, n);
249 config_theme = parse_expand_tilde(c);
250 g_free(c);
251 }
252 if ((n = parse_find_node("titleLayout", node))) {
253 g_free(config_title_layout);
254 config_title_layout = parse_string(doc, n);
255 }
256 if ((n = parse_find_node("keepBorder", node)))
257 config_theme_keepborder = parse_bool(doc, n);
258 }
259
260 static void parse_desktops(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
261 gpointer d)
262 {
263 xmlNodePtr n;
264
265 node = node->children;
266
267 if ((n = parse_find_node("number", node))) {
268 gint d = parse_int(doc, n);
269 if (d > 0)
270 config_desktops_num = d;
271 }
272 if ((n = parse_find_node("firstdesk", node))) {
273 gint d = parse_int(doc, n);
274 if (d > 0)
275 config_screen_firstdesk = d;
276 }
277 if ((n = parse_find_node("names", node))) {
278 GSList *it;
279 xmlNodePtr nname;
280
281 for (it = config_desktops_names; it; it = it->next)
282 g_free(it->data);
283 g_slist_free(config_desktops_names);
284 config_desktops_names = NULL;
285
286 nname = parse_find_node("name", n->children);
287 while (nname) {
288 config_desktops_names = g_slist_append(config_desktops_names,
289 parse_string(doc, nname));
290 nname = parse_find_node("name", nname->next);
291 }
292 }
293 }
294
295 static void parse_resize(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
296 gpointer d)
297 {
298 xmlNodePtr n;
299
300 node = node->children;
301
302 if ((n = parse_find_node("drawContents", node)))
303 config_resize_redraw = parse_bool(doc, n);
304 if ((n = parse_find_node("fourCorner", node)))
305 config_resize_four_corners = parse_bool(doc, n);
306 if ((n = parse_find_node("popupShow", node))) {
307 config_resize_popup_show = parse_int(doc, n);
308 if (parse_contains("Always", doc, n))
309 config_resize_popup_show = 2;
310 else if (parse_contains("Never", doc, n))
311 config_resize_popup_show = 0;
312 else if (parse_contains("Nonpixel", doc, n))
313 config_resize_popup_show = 1;
314 }
315 if ((n = parse_find_node("popupPosition", node))) {
316 config_resize_popup_pos = parse_int(doc, n);
317 if (parse_contains("Top", doc, n))
318 config_resize_popup_pos = 1;
319 else if (parse_contains("Center", doc, n))
320 config_resize_popup_pos = 0;
321 }
322 }
323
324 static void parse_dock(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
325 gpointer d)
326 {
327 xmlNodePtr n;
328
329 node = node->children;
330
331 if ((n = parse_find_node("position", node))) {
332 if (parse_contains("TopLeft", doc, n))
333 config_dock_floating = FALSE,
334 config_dock_pos = OB_DIRECTION_NORTHWEST;
335 else if (parse_contains("Top", doc, n))
336 config_dock_floating = FALSE,
337 config_dock_pos = OB_DIRECTION_NORTH;
338 else if (parse_contains("TopRight", doc, n))
339 config_dock_floating = FALSE,
340 config_dock_pos = OB_DIRECTION_NORTHEAST;
341 else if (parse_contains("Right", doc, n))
342 config_dock_floating = FALSE,
343 config_dock_pos = OB_DIRECTION_EAST;
344 else if (parse_contains("BottomRight", doc, n))
345 config_dock_floating = FALSE,
346 config_dock_pos = OB_DIRECTION_SOUTHEAST;
347 else if (parse_contains("Bottom", doc, n))
348 config_dock_floating = FALSE,
349 config_dock_pos = OB_DIRECTION_SOUTH;
350 else if (parse_contains("BottomLeft", doc, n))
351 config_dock_floating = FALSE,
352 config_dock_pos = OB_DIRECTION_SOUTHWEST;
353 else if (parse_contains("Left", doc, n))
354 config_dock_floating = FALSE,
355 config_dock_pos = OB_DIRECTION_WEST;
356 else if (parse_contains("Floating", doc, n))
357 config_dock_floating = TRUE;
358 }
359 if (config_dock_floating) {
360 if ((n = parse_find_node("floatingX", node)))
361 config_dock_x = parse_int(doc, n);
362 if ((n = parse_find_node("floatingY", node)))
363 config_dock_y = parse_int(doc, n);
364 } else {
365 if ((n = parse_find_node("noStrut", node)))
366 config_dock_floating = parse_bool(doc, n);
367 }
368 if ((n = parse_find_node("stacking", node))) {
369 if (parse_contains("top", doc, n))
370 config_dock_layer = OB_STACKING_LAYER_ABOVE;
371 else if (parse_contains("normal", doc, n))
372 config_dock_layer = OB_STACKING_LAYER_NORMAL;
373 else if (parse_contains("bottom", doc, n))
374 config_dock_layer = OB_STACKING_LAYER_BELOW;
375 }
376 if ((n = parse_find_node("direction", node))) {
377 if (parse_contains("horizontal", doc, n))
378 config_dock_orient = OB_ORIENTATION_HORZ;
379 else if (parse_contains("vertical", doc, n))
380 config_dock_orient = OB_ORIENTATION_VERT;
381 }
382 if ((n = parse_find_node("autoHide", node)))
383 config_dock_hide = parse_bool(doc, n);
384 if ((n = parse_find_node("hideDelay", node)))
385 config_dock_hide_delay = parse_int(doc, n) * 1000;
386 if ((n = parse_find_node("moveButton", node))) {
387 gchar *str = parse_string(doc, n);
388 guint b, s;
389 if (translate_button(str, &s, &b)) {
390 config_dock_app_move_button = b;
391 config_dock_app_move_modifiers = s;
392 } else {
393 g_warning("invalid button '%s'", str);
394 }
395 g_free(str);
396 }
397 }
398
399 static void parse_menu(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
400 gpointer d)
401 {
402 xmlNodePtr n;
403 for (node = node->children; node; node = node->next) {
404 if (!xmlStrcasecmp(node->name, (const xmlChar*) "file")) {
405 gchar *c;
406
407 c = parse_string(doc, node);
408 config_menu_files = g_slist_append(config_menu_files,
409 parse_expand_tilde(c));
410 g_free(c);
411 }
412 if ((n = parse_find_node("warpPointer", node)))
413 config_menu_warppointer = parse_bool(doc, n);
414 if ((n = parse_find_node("xorStyle", node)))
415 config_menu_xorstyle = parse_bool(doc, n);
416 if ((n = parse_find_node("hideDelay", node)))
417 config_menu_hide_delay = parse_int(doc, n);
418 if ((n = parse_find_node("desktopMenuIcons", node)))
419 config_menu_client_list_icons = parse_bool(doc, n);
420 }
421 }
422
423 static void parse_resistance(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
424 gpointer d)
425 {
426 xmlNodePtr n;
427
428 node = node->children;
429 if ((n = parse_find_node("strength", node)))
430 config_resist_win = parse_int(doc, n);
431 if ((n = parse_find_node("screen_edge_strength", node)))
432 config_resist_edge = parse_int(doc, n);
433 if ((n = parse_find_node("edges_hit_layers_below", node)))
434 config_resist_layers_below = parse_bool(doc, n);
435 }
436
437 typedef struct
438 {
439 const gchar *key;
440 const gchar *actname;
441 } ObDefKeyBind;
442
443 static void bind_default_keyboard()
444 {
445 ObDefKeyBind *it;
446 ObDefKeyBind binds[] = {
447 { "A-Tab", "NextWindow" },
448 { "S-A-Tab", "PreviousWindow" },
449 { "A-F4", "Close" },
450 { NULL, NULL }
451 };
452
453 for (it = binds; it->key; ++it) {
454 GList *l = g_list_append(NULL, g_strdup(it->key));
455 keyboard_bind(l, action_from_string(it->actname,
456 OB_USER_ACTION_KEYBOARD_KEY));
457 }
458 }
459
460 typedef struct
461 {
462 const gchar *button;
463 const gchar *context;
464 const ObMouseAction mact;
465 const gchar *actname;
466 } ObDefMouseBind;
467
468 static void bind_default_mouse()
469 {
470 ObDefMouseBind *it;
471 ObDefMouseBind binds[] = {
472 { "Left", "Client", OB_MOUSE_ACTION_PRESS, "Focus" },
473 { "Middle", "Client", OB_MOUSE_ACTION_PRESS, "Focus" },
474 { "Right", "Client", OB_MOUSE_ACTION_PRESS, "Focus" },
475 { "Left", "Desktop", OB_MOUSE_ACTION_PRESS, "Focus" },
476 { "Middle", "Desktop", OB_MOUSE_ACTION_PRESS, "Focus" },
477 { "Right", "Desktop", OB_MOUSE_ACTION_PRESS, "Focus" },
478 { "Left", "Titlebar", OB_MOUSE_ACTION_PRESS, "Focus" },
479 { "Left", "Handle", OB_MOUSE_ACTION_PRESS, "Focus" },
480 { "Left", "BLCorner", OB_MOUSE_ACTION_PRESS, "Focus" },
481 { "Left", "BRCorner", OB_MOUSE_ACTION_PRESS, "Focus" },
482 { "Left", "TLCorner", OB_MOUSE_ACTION_PRESS, "Focus" },
483 { "Left", "TRCorner", OB_MOUSE_ACTION_PRESS, "Focus" },
484 { "Left", "Close", OB_MOUSE_ACTION_PRESS, "Focus" },
485 { "Left", "Maximize", OB_MOUSE_ACTION_PRESS, "Focus" },
486 { "Left", "Iconify", OB_MOUSE_ACTION_PRESS, "Focus" },
487 { "Left", "Icon", OB_MOUSE_ACTION_PRESS, "Focus" },
488 { "Left", "AllDesktops", OB_MOUSE_ACTION_PRESS, "Focus" },
489 { "Left", "Shade", OB_MOUSE_ACTION_PRESS, "Focus" },
490 { "Left", "Client", OB_MOUSE_ACTION_CLICK, "Raise" },
491 { "Left", "Titlebar", OB_MOUSE_ACTION_CLICK, "Raise" },
492 { "Middle", "Titlebar", OB_MOUSE_ACTION_CLICK, "Lower" },
493 { "Left", "Handle", OB_MOUSE_ACTION_CLICK, "Raise" },
494 { "Left", "BLCorner", OB_MOUSE_ACTION_CLICK, "Raise" },
495 { "Left", "BRCorner", OB_MOUSE_ACTION_CLICK, "Raise" },
496 { "Left", "TLCorner", OB_MOUSE_ACTION_CLICK, "Raise" },
497 { "Left", "TRCorner", OB_MOUSE_ACTION_CLICK, "Raise" },
498 { "Left", "Close", OB_MOUSE_ACTION_CLICK, "Raise" },
499 { "Left", "Maximize", OB_MOUSE_ACTION_CLICK, "Raise" },
500 { "Left", "Iconify", OB_MOUSE_ACTION_CLICK, "Raise" },
501 { "Left", "Icon", OB_MOUSE_ACTION_CLICK, "Raise" },
502 { "Left", "AllDesktops", OB_MOUSE_ACTION_CLICK, "Raise" },
503 { "Left", "Shade", OB_MOUSE_ACTION_CLICK, "Raise" },
504 { "Left", "Close", OB_MOUSE_ACTION_CLICK, "Close" },
505 { "Left", "Maximize", OB_MOUSE_ACTION_CLICK, "ToggleMaximizeFull" },
506 { "Left", "Iconify", OB_MOUSE_ACTION_CLICK, "Iconify" },
507 { "Left", "AllDesktops", OB_MOUSE_ACTION_CLICK, "ToggleOmnipresent" },
508 { "Left", "Shade", OB_MOUSE_ACTION_CLICK, "ToggleShade" },
509 { "Left", "TLCorner", OB_MOUSE_ACTION_MOTION, "Resize" },
510 { "Left", "TRCorner", OB_MOUSE_ACTION_MOTION, "Resize" },
511 { "Left", "BLCorner", OB_MOUSE_ACTION_MOTION, "Resize" },
512 { "Left", "BRCorner", OB_MOUSE_ACTION_MOTION, "Resize" },
513 { "Left", "Titlebar", OB_MOUSE_ACTION_MOTION, "Move" },
514 { "A-Left", "Frame", OB_MOUSE_ACTION_MOTION, "Move" },
515 { "A-Middle", "Frame", OB_MOUSE_ACTION_MOTION, "Resize" },
516 { NULL, NULL, 0, NULL }
517 };
518
519 for (it = binds; it->button; ++it) {
520 ObUserAction uact;
521 switch (it->mact) {
522 case OB_MOUSE_ACTION_PRESS:
523 uact = OB_USER_ACTION_MOUSE_PRESS; break;
524 case OB_MOUSE_ACTION_RELEASE:
525 uact = OB_USER_ACTION_MOUSE_RELEASE; break;
526 case OB_MOUSE_ACTION_CLICK:
527 uact = OB_USER_ACTION_MOUSE_CLICK; break;
528 case OB_MOUSE_ACTION_DOUBLE_CLICK:
529 uact = OB_USER_ACTION_MOUSE_DOUBLE_CLICK; break;
530 case OB_MOUSE_ACTION_MOTION:
531 uact = OB_USER_ACTION_MOUSE_MOTION; break;
532 case OB_NUM_MOUSE_ACTIONS:
533 g_assert_not_reached();
534 }
535 mouse_bind(it->button, it->context, it->mact,
536 action_from_string(it->actname, uact));
537 }
538 }
539
540 void config_startup(ObParseInst *i)
541 {
542 config_focus_new = TRUE;
543 config_focus_follow = FALSE;
544 config_focus_delay = 0;
545 config_focus_raise = FALSE;
546 config_focus_last = FALSE;
547
548 parse_register(i, "focus", parse_focus, NULL);
549
550 config_place_policy = OB_PLACE_POLICY_SMART;
551
552 parse_register(i, "placement", parse_placement, NULL);
553
554 config_theme = NULL;
555
556 config_title_layout = g_strdup("NLIMC");
557 config_theme_keepborder = TRUE;
558
559 parse_register(i, "theme", parse_theme, NULL);
560
561 config_desktops_num = 4;
562 config_screen_firstdesk = 1;
563 config_desktops_names = NULL;
564
565 parse_register(i, "desktops", parse_desktops, NULL);
566
567 config_resize_redraw = TRUE;
568 config_resize_four_corners = FALSE;
569 config_resize_popup_show = 1; /* nonpixel increments */
570 config_resize_popup_pos = 0; /* center of client */
571
572 parse_register(i, "resize", parse_resize, NULL);
573
574 config_dock_layer = OB_STACKING_LAYER_ABOVE;
575 config_dock_pos = OB_DIRECTION_NORTHEAST;
576 config_dock_floating = FALSE;
577 config_dock_x = 0;
578 config_dock_y = 0;
579 config_dock_orient = OB_ORIENTATION_VERT;
580 config_dock_hide = FALSE;
581 config_dock_hide_delay = 300;
582 config_dock_app_move_button = 2; /* middle */
583 config_dock_app_move_modifiers = 0;
584
585 parse_register(i, "dock", parse_dock, NULL);
586
587 translate_key("C-g", &config_keyboard_reset_state,
588 &config_keyboard_reset_keycode);
589
590 bind_default_keyboard();
591
592 parse_register(i, "keyboard", parse_keyboard, NULL);
593
594 config_mouse_threshold = 3;
595 config_mouse_dclicktime = 200;
596
597 bind_default_mouse();
598
599 parse_register(i, "mouse", parse_mouse, NULL);
600
601 config_resist_win = 10;
602 config_resist_edge = 20;
603 config_resist_layers_below = FALSE;
604
605 parse_register(i, "resistance", parse_resistance, NULL);
606
607 config_menu_warppointer = TRUE;
608 config_menu_xorstyle = TRUE;
609 config_menu_hide_delay = 250;
610 config_menu_client_list_icons = TRUE;
611 config_menu_files = NULL;
612
613 parse_register(i, "menu", parse_menu, NULL);
614 }
615
616 void config_shutdown()
617 {
618 GSList *it;
619
620 g_free(config_theme);
621
622 g_free(config_title_layout);
623
624 for (it = config_desktops_names; it; it = g_slist_next(it))
625 g_free(it->data);
626 g_slist_free(config_desktops_names);
627
628 for (it = config_menu_files; it; it = g_slist_next(it))
629 g_free(it->data);
630 g_slist_free(config_menu_files);
631 }
This page took 0.063015 seconds and 5 git commands to generate.