-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtodo_code
29 lines (21 loc) · 1023 Bytes
/
todo_code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
configure palette
config->colour_palette = (GdkColor *) g_malloc(sizeof(GdkColor) * DEFAULT_PALETTE_SIZE);
for (i=0; i < DEFAULT_PALETTE_SIZE; i++){
g_snprintf(addid, 3, "%d", i);
gdk_color_parse(g_key_file_get_string(keyfile, "colour scheme", addid , NULL), &config->colour_palette[i]);
}
if (!gdk_color_parse(g_key_file_get_string( keyfile, "colour scheme", "foreground", NULL), &config->foreground)){
gdk_color_parse(DEFAULT_FOREGROUND_COLOR, &config->foreground);
g_warning("Using default foreground color");
}
if (!gdk_color_parse(g_key_file_get_string( keyfile, "colour scheme", "background", NULL), &config->background)){
gdk_color_parse(DEFAULT_BACKGROUND_COLOR, &config->background);
g_warning("Using default background color");
}
--------------------------------------------------
sdvt_desktop_manager_init
desktop - GObject?
see pcmanfm desktop.c
--------------------------------------------------
improve case multiple monitors and screens
--------------------------------------------------