diff options
author | Sebastien Bacher <seb128@ubuntu.com> | 2010-03-31 17:49:12 +0200 |
---|---|---|
committer | Sebastien Bacher <seb128@ubuntu.com> | 2010-03-31 17:49:12 +0200 |
commit | af4e502ea8bb14cf13561feb8f8687cd144b5399 (patch) | |
tree | 0cb45faabc050b9403733b36a430729efdce2e94 /src/slider-menu-item.c | |
parent | d51bf7d31390a50eb79beaf20a10bdcfed28f67b (diff) | |
parent | c82de623381c8e578acff7f9a7074aabbb8258aa (diff) | |
download | ayatana-indicator-sound-af4e502ea8bb14cf13561feb8f8687cd144b5399.tar.gz ayatana-indicator-sound-af4e502ea8bb14cf13561feb8f8687cd144b5399.tar.bz2 ayatana-indicator-sound-af4e502ea8bb14cf13561feb8f8687cd144b5399.zip |
Import upstream version 0.2.2
Diffstat (limited to 'src/slider-menu-item.c')
-rw-r--r-- | src/slider-menu-item.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/slider-menu-item.c b/src/slider-menu-item.c index a14f4f9..cb72524 100644 --- a/src/slider-menu-item.c +++ b/src/slider-menu-item.c @@ -77,12 +77,14 @@ slider_menu_item_finalize (GObject *object) } - static void handle_event (DbusmenuMenuitem * mi, const gchar * name, const GValue * value, guint timestamp) { g_debug("in the handle event method of slider_menu_item"); - set_sink_volume((gdouble)g_value_get_double(value)); + gdouble volume_input = 0; + volume_input = g_value_get_double(value); + if(value != NULL) + set_sink_volume(volume_input); } |