diff options
author | Conor Curran <conor.curran@canonical.com> | 2011-01-10 16:47:20 -0600 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2011-01-10 16:47:20 -0600 |
commit | 9452f0262c608fc1ee6509078b3538f68b5f0993 (patch) | |
tree | a044942081f6ed5ed2d4035e524f942c209d99ed /src/dbus-menu-manager.c | |
parent | b3a4d53a7f9433c1bd13ae89697ea06a8ce44e50 (diff) | |
download | ayatana-indicator-sound-9452f0262c608fc1ee6509078b3538f68b5f0993.tar.gz ayatana-indicator-sound-9452f0262c608fc1ee6509078b3538f68b5f0993.tar.bz2 ayatana-indicator-sound-9452f0262c608fc1ee6509078b3538f68b5f0993.zip |
now building
Diffstat (limited to 'src/dbus-menu-manager.c')
-rw-r--r-- | src/dbus-menu-manager.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/dbus-menu-manager.c b/src/dbus-menu-manager.c index f92c324..e51db0d 100644 --- a/src/dbus-menu-manager.c +++ b/src/dbus-menu-manager.c @@ -21,9 +21,6 @@ with this program. If not, see <http://www.gnu.org/licenses/>. #include <unistd.h> #include <glib/gi18n.h> -#include <dbus/dbus-glib.h> -#include <dbus/dbus-glib-bindings.h> - #include <libdbusmenu-glib/server.h> #include <libdbusmenu-glib/client.h> @@ -79,10 +76,10 @@ DbusmenuMenuitem* dbus_menu_manager_setup() void dbus_menu_manager_update_volume(gdouble volume) { - GValue value = {0}; - g_value_init(&value, G_TYPE_DOUBLE); - g_value_set_double(&value, volume); - dbusmenu_menuitem_property_set_value(DBUSMENU_MENUITEM(volume_slider_menuitem), DBUSMENU_VOLUME_MENUITEM_LEVEL, &value); + GVariant* new_volume = g_variant_new_double(volume); + dbusmenu_menuitem_property_set_variant(DBUSMENU_MENUITEM(volume_slider_menuitem), + DBUSMENU_VOLUME_MENUITEM_LEVEL, + new_volume); } |