Commit bc22973fa04de42e53402595ff16d316b62e545b

Authored by Perry Werneck
1 parent e79e98c4
Exists in master and in 1 other branch develop

Fixing windows package.

src/terminal/keyfile.c
@@ -317,7 +317,6 @@ @@ -317,7 +317,6 @@
317 key_file, 317 key_file,
318 group_name 318 group_name
319 ); 319 );
320 -  
321 } 320 }
322 321
323 } 322 }
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