aboutsummaryrefslogtreecommitdiff
path: root/libindicator
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-16 08:22:57 -0600
committerTed Gould <ted@gould.cx>2010-02-16 08:22:57 -0600
commit37a107b59320377772c52e03db294614b08a2022 (patch)
tree23dffd1e4e13fffdb902cfb83578d461b94c87f2 /libindicator
parent8b8c3f426b96071e3cf92b1236c6507586805647 (diff)
downloadlibayatana-indicator-37a107b59320377772c52e03db294614b08a2022.tar.gz
libayatana-indicator-37a107b59320377772c52e03db294614b08a2022.tar.bz2
libayatana-indicator-37a107b59320377772c52e03db294614b08a2022.zip
Identity management with the properties.
Diffstat (limited to 'libindicator')
-rw-r--r--libindicator/indicator-desktop-shortcuts.c6
1 files changed, 6 insertions, 0 deletions
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: