switch (property_id) {
case PROP_IMPL: {
- gpointer iface = g_value_peek_pointer (value);
+ gpointer iface = g_value_get_pointer (value);
if (iface) {
self->priv->parent = GSIGNOND_AUTH_SERVICE_IFACE (iface);
}
switch (property_id) {
case PROP_IMPL: {
- g_value_set_instance (value, self->priv->parent);
+ g_value_set_pointer (value, self->priv->parent);
break;
}
default:
object_class->dispose = gsignond_dbus_auth_service_adapter_dispose;
object_class->finalize = gsignond_dbus_auth_service_adapter_finalize;
- properties[PROP_IMPL] = g_param_spec_object ("auth-session-impl",
+ properties[PROP_IMPL] = g_param_spec_pointer ("auth-session-impl",
"Auth session impl",
"AuthSessionIface implementation object",
- GSIGNOND_TYPE_AUTH_SERVICE_IFACE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
g_object_class_install_properties (object_class, N_PROPERTIES, properties);
switch (property_id) {
case PROP_IMPL: {
- gpointer iface = g_value_peek_pointer (value);
+ gpointer iface = g_value_get_pointer (value);
if (iface) {
if (self->priv->parent) {
g_signal_handler_disconnect (self->priv->parent, self->priv->state_changed_handler_id);
switch (property_id) {
case PROP_IMPL: {
- gpointer iface = g_value_peek_pointer (value);
+ gpointer iface = g_value_get_pointer (value);
if (iface) {
if (self->priv->identity) {
if (self->priv->info_updated_handler_id) {
switch (property_id) {
case PROP_IMPL: {
- g_value_set_instance (value, self->priv->identity);
+ g_value_set_pointer (value, self->priv->identity);
break;
}
case PROP_APP_CONTEXT:
object_class->dispose = gsignond_dbus_identity_adapter_dispose;
object_class->finalize = gsignond_dbus_identity_adapter_finalize;
- properties[PROP_IMPL] = g_param_spec_object ("identity-impl",
+ properties[PROP_IMPL] = g_param_spec_pointer ("identity-impl",
"Identity Iface implementation",
"IdentityIface implementation object",
- GSIGNOND_TYPE_IDENTITY_IFACE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
properties[PROP_APP_CONTEXT] = g_param_spec_string (
"app-context",
SIG_MAX
};
-guint signals[SIG_MAX] = { 0 };
+static guint signals[SIG_MAX] = { 0 };
static void
gsignond_auth_session_iface_default_init (
SIG_MAX
};
-guint signals[SIG_MAX];
+static guint signals[SIG_MAX];
G_DEFINE_INTERFACE (GSignondIdentityIface, gsignond_identity_iface, G_TYPE_OBJECT)