Commit bc22973fa04de42e53402595ff16d316b62e545b
1 parent
e79e98c4
Exists in
master
and in
1 other branch
Fixing windows package.
Showing
2 changed files
with
30 additions
and
10 deletions
Show diff stats
src/terminal/keyfile.c
src/terminal/windows/registry.c
@@ -261,11 +261,23 @@ | @@ -261,11 +261,23 @@ | ||
261 | 261 | ||
262 | // Save Toggles | 262 | // Save Toggles |
263 | for(ix = 0; ix < G_N_ELEMENTS(klass->properties.toggle); ix++) | 263 | for(ix = 0; ix < G_N_ELEMENTS(klass->properties.toggle); ix++) |
264 | - save_by_pspec(widget,klass->properties.toggle[ix],hKey); | 264 | + { |
265 | + save_by_pspec( | ||
266 | + widget, | ||
267 | + klass->properties.toggle[ix], | ||
268 | + hKey | ||
269 | + ); | ||
270 | + } | ||
265 | 271 | ||
266 | // Save V3270 properties | 272 | // Save V3270 properties |
267 | - for(ix = 0; ix < V3270_SETTING_COUNT; ix++) | ||
268 | - save_by_pspec(widget,klass->properties.settings[ix],hKey); | 273 | + for(ix = 0; klass->properties.persistent[ix];ix++) |
274 | + { | ||
275 | + save_by_pspec( | ||
276 | + widget, | ||
277 | + g_object_class_find_property(G_OBJECT_CLASS(klass),klass->properties.persistent[ix]), | ||
278 | + hKey | ||
279 | + ); | ||
280 | + } | ||
269 | 281 | ||
270 | RegCloseKey(hKey); | 282 | RegCloseKey(hKey); |
271 | 283 | ||
@@ -322,14 +334,23 @@ | @@ -322,14 +334,23 @@ | ||
322 | 334 | ||
323 | // Load Toggles | 335 | // Load Toggles |
324 | for(ix = 0; ix < G_N_ELEMENTS(klass->properties.toggle); ix++) | 336 | for(ix = 0; ix < G_N_ELEMENTS(klass->properties.toggle); ix++) |
325 | - load_by_pspec(widget,klass->properties.toggle[ix],hKey); | 337 | + { |
338 | + load_by_pspec( | ||
339 | + widget, | ||
340 | + klass->properties.toggle[ix], | ||
341 | + hKey | ||
342 | + ); | ||
343 | + } | ||
326 | 344 | ||
327 | // Load V3270 properties | 345 | // Load V3270 properties |
328 | - for(ix = 0; ix < V3270_SETTING_COUNT; ix++) | ||
329 | - load_by_pspec(widget,klass->properties.settings[ix],hKey); | ||
330 | - | ||
331 | - // Load V3270 colors | ||
332 | - // v3270_set_colors(widget,g_key_file_get_string(key_file,group_name,"colors",NULL)); | 346 | + for(ix = 0; klass->properties.persistent[ix];ix++) |
347 | + { | ||
348 | + load_by_pspec( | ||
349 | + widget, | ||
350 | + g_object_class_find_property(G_OBJECT_CLASS(klass),klass->properties.persistent[ix]), | ||
351 | + hKey | ||
352 | + ); | ||
353 | + } | ||
333 | 354 | ||
334 | g_object_thaw_notify(G_OBJECT(widget)); | 355 | g_object_thaw_notify(G_OBJECT(widget)); |
335 | 356 |