static void config_get_property (GObject *object, guint param_id, GValue *value, GParamSpec *pspec) { switch (param_id) { case PROP_GRAPHUPDATED_DELAY: g_value_set_int (value, tracker_config_get_graphupdated_delay (TRACKER_CONFIG (object))); break; /* General */ case PROP_VERBOSITY: g_value_set_enum (value, tracker_config_get_verbosity (TRACKER_CONFIG (object))); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec); break; }; }
static void config_set_property (GObject *object, guint param_id, const GValue *value, GParamSpec *pspec) { switch (param_id) { case PROP_VERBOSITY: tracker_config_set_verbosity (TRACKER_CONFIG (object), g_value_get_enum (value)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec); break; }; }