static void on_lvm_volume_group_notify (GObject *object, GParamSpec *pspec, gpointer user_data) { StorageVolumeGroup *volume_group = STORAGE_VOLUME_GROUP (user_data); storage_volume_group_update (volume_group); }
static void storage_volume_group_constructed (GObject *object) { StorageVolumeGroup *volume_group = STORAGE_VOLUME_GROUP (object); volume_group->lvm_volume_group = g_object_ref (storage_object_get_lvm_volume_group (volume_group->object)); g_signal_connect (volume_group->lvm_volume_group, "notify", G_CALLBACK (on_lvm_volume_group_notify), volume_group); storage_volume_group_update (volume_group); if (G_OBJECT_CLASS (storage_volume_group_parent_class)->constructed != NULL) G_OBJECT_CLASS (storage_volume_group_parent_class)->constructed (object); }