diff options
author | Conor Curran <conor.curran@canonical.com> | 2011-01-26 20:46:26 -0600 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2011-01-26 20:46:26 -0600 |
commit | b7086f82e50f8c95c0d213b45c54a603f7e58f01 (patch) | |
tree | 2a2dfef65f4c05a152cdfe58f086bf086b510965 | |
parent | b21fd65d6bc0dee49a39fb18f585cbe75acc5e52 (diff) | |
download | ayatana-indicator-sound-b7086f82e50f8c95c0d213b45c54a603f7e58f01.tar.gz ayatana-indicator-sound-b7086f82e50f8c95c0d213b45c54a603f7e58f01.tar.bz2 ayatana-indicator-sound-b7086f82e50f8c95c0d213b45c54a603f7e58f01.zip |
more fixes
-rw-r--r-- | src/sound-service-dbus.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/sound-service-dbus.c b/src/sound-service-dbus.c index 336ee1f..78b5e93 100644 --- a/src/sound-service-dbus.c +++ b/src/sound-service-dbus.c @@ -176,27 +176,30 @@ static void sound_service_dbus_build_sound_menu ( SoundServiceDbus* self, priv->mute_menuitem = mute_menu_item_new ( mute_update, availability); dbusmenu_menuitem_child_append (priv->root_menuitem, mute_menu_item_get_button (priv->mute_menuitem)); - g_object_unref (priv->mute_menuitem); // Slider priv->volume_slider_menuitem = slider_menu_item_new ( availability, volume ); dbusmenu_menuitem_child_append (priv->root_menuitem, DBUSMENU_MENUITEM ( priv->volume_slider_menuitem )); - g_object_unref (priv->volume_slider__menuitem); // Separator DbusmenuMenuitem* separator = dbusmenu_menuitem_new(); + g_object_ref (separator); + dbusmenu_menuitem_property_set( separator, DBUSMENU_MENUITEM_PROP_TYPE, DBUSMENU_CLIENT_TYPES_SEPARATOR); dbusmenu_menuitem_child_append(priv->root_menuitem, separator); + g_object_unref (separator); // Sound preferences dialog DbusmenuMenuitem* settings_mi = dbusmenu_menuitem_new(); + g_object_ref(settings_mi); dbusmenu_menuitem_property_set( settings_mi, DBUSMENU_MENUITEM_PROP_LABEL, _("Sound Preferences...")); dbusmenu_menuitem_child_append(priv->root_menuitem, settings_mi); + g_object_unref (settings_mi); g_signal_connect(G_OBJECT(settings_mi), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(show_sound_settings_dialog), NULL); |