/gpump/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/gpump/trunk

« back to all changes in this revision

Viewing changes to src/GPumpSettingsData.c

  • Committer: Gustav Hatvigsson
  • Date: 2014-04-21 20:19:41 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140421201941-vdr964wrn5miwzm4
* added gpump_app_dispose
* trying to figure out why GPumpApp needs to be freed thee times
* trying to figure out why GPumpSettingsData is not freed as it should...w

Show diffs side-by-side

added added

removed removed

Lines of Context:
325
325
GObject *gpump_settings_data_construct (GType type,
326
326
                        guint n_construct_params,
327
327
                        GObjectConstructParam * construct_params) {
 
328
  g_print ("GPumpSettingsData contructor is run\n");
328
329
  static GObject * self = NULL;
329
330
  static GMutex mutex;
330
331
  
334
335
      type, n_construct_params, construct_params);
335
336
    g_object_add_weak_pointer (self, (gpointer) &self);
336
337
    g_mutex_unlock (&mutex);
 
338
    g_print ("GPumpSettingsData contructor has run\n");
337
339
    return self;
338
340
  }
339
341
  g_mutex_unlock (&mutex);
 
342
  g_print ("GPumpSettingsData contructor has run\n");
340
343
  return g_object_ref (self);
341
344
}
342
345
 
346
349
#if GPUMP_USE_GSETTIGS
347
350
  /* do nothing, not implemented yet */
348
351
#else
349
 
  gpump_settings_data_commit (self, NULL);
 
352
  if (!(gpump_settings_data_commit (self, NULL))) {
 
353
     g_print ("Could not commit data\n");
 
354
   }
350
355
  
351
356
  g_key_file_free (self->priv->gpump_settings);
352
357
  g_object_unref (G_OBJECT(self->priv->gpump_settings_file));