comparison finch/libgnt/gntstyle.c @ 18076:da183b86a3ef

Update for the new api.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 10 Jun 2007 15:41:14 +0000
parents 08776fc5c06f
children 7e0bd339533c
comparison
equal deleted inserted replaced
18075:34e011c8ed2b 18076:da183b86a3ef
135 g_sprintf(group, "Workspace-%d", i); 135 g_sprintf(group, "Workspace-%d", i);
136 name = g_key_file_get_value(gkfile, group, "name", NULL); 136 name = g_key_file_get_value(gkfile, group, "name", NULL);
137 if (!name) 137 if (!name)
138 return; 138 return;
139 139
140 ws = g_object_new(GNT_TYPE_WS, NULL); 140 ws = gnt_ws_new(name);
141 gnt_ws_set_name(ws, name);
142 gnt_wm_add_workspace(wm, ws); 141 gnt_wm_add_workspace(wm, ws);
143 g_free(name); 142 g_free(name);
144 143
145 titles = g_key_file_get_string_list(gkfile, group, "window-names", &c, NULL); 144 titles = g_key_file_get_string_list(gkfile, group, "window-names", &c, NULL);
146 if (titles) { 145 if (titles) {