diff options
author | Ted Gould <ted@gould.cx> | 2010-11-11 20:17:51 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-11-11 20:17:51 -0600 |
commit | 00758f364ae486352c0e2aa076710ae74e3ce190 (patch) | |
tree | f4b7104f851d092cab74fa43752017a2209b026b | |
parent | 1ec2b70ac16b031a4c7cc5398e9fb7a17bef4e4c (diff) | |
download | libayatana-appindicator-00758f364ae486352c0e2aa076710ae74e3ce190.tar.gz libayatana-appindicator-00758f364ae486352c0e2aa076710ae74e3ce190.tar.bz2 libayatana-appindicator-00758f364ae486352c0e2aa076710ae74e3ce190.zip |
Set and Get for the dbusmenu server property
-rw-r--r-- | src/app-indicator.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/app-indicator.c b/src/app-indicator.c index 25599a7..fd035ac 100644 --- a/src/app-indicator.c +++ b/src/app-indicator.c @@ -810,6 +810,14 @@ app_indicator_set_property (GObject * object, guint prop_id, const GValue * valu priv->ordering_index = g_value_get_uint(value); break; + case PROP_DBUS_MENU_SERVER: + if (priv->menuservice != NULL) { + g_object_unref (priv->menuservice); + } + gpointer val = g_value_dup_object(value); + priv->menuservice = DBUSMENU_SERVER(val); + break; + default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; @@ -882,6 +890,10 @@ app_indicator_get_property (GObject * object, guint prop_id, GValue * value, GPa g_value_set_uint(value, priv->ordering_index); break; + case PROP_DBUS_MENU_SERVER: + g_value_set_object(value, priv->menuservice); + break; + default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; |