From 37a107b59320377772c52e03db294614b08a2022 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 16 Feb 2010 08:22:57 -0600 Subject: Identity management with the properties. --- libindicator/indicator-desktop-shortcuts.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libindicator/indicator-desktop-shortcuts.c b/libindicator/indicator-desktop-shortcuts.c index bfd8719..9f31c5d 100644 --- a/libindicator/indicator-desktop-shortcuts.c +++ b/libindicator/indicator-desktop-shortcuts.c @@ -153,6 +153,11 @@ set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec case PROP_DESKTOP_FILE: break; case PROP_IDENTITY: + if (priv->identity != NULL) { + g_warning("Identity already set to '%s' and trying to set it to '%s'.", priv->identity, g_value_get_string(value)); + return; + } + priv->identity = g_value_dup_string(value); break; /* *********************** */ default: @@ -174,6 +179,7 @@ get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspe case PROP_DESKTOP_FILE: break; case PROP_IDENTITY: + g_value_set_string(value, priv->identity); break; /* *********************** */ default: -- cgit v1.2.3