From 411333bed0e020e1725e3dd48afdc57e41fd1b93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Sun, 23 Jan 2011 14:10:10 +0100 Subject: use update_state_from_volume instead of determine_state_from_volume And make determine_state_from_volume return the state for the selected value --- src/indicator-sound.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/indicator-sound.h') diff --git a/src/indicator-sound.h b/src/indicator-sound.h index 9f829bb..7bf69b6 100644 --- a/src/indicator-sound.h +++ b/src/indicator-sound.h @@ -53,7 +53,7 @@ struct _IndicatorSound { GType indicator_sound_get_type (void); void prepare_state_machine(); -extern void determine_state_from_volume(gdouble volume_percent); +extern void update_state_from_volume(gdouble volume_percent); gint get_state(); gchar* get_state_image_name(gint state); void prepare_for_tests(IndicatorObject * io); -- cgit v1.2.3 From 463c714aac4835bcdfda3c523122c13fac1586f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Sun, 23 Jan 2011 17:01:01 +0100 Subject: Show a value notify-osd notification (if supported) when scrolling To improve the indicator usability, show a notify-osd bubble with the volume value when changing the value level using the scrolling-wheel over the indicator icon. --- src/indicator-sound.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/indicator-sound.h') diff --git a/src/indicator-sound.h b/src/indicator-sound.h index 7bf69b6..276136d 100644 --- a/src/indicator-sound.h +++ b/src/indicator-sound.h @@ -23,6 +23,8 @@ PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#include "config.h" + #include #include #include -- cgit v1.2.3 From 21cf01130cd686a9e4c1d4e90dbd3e01f8d0b7b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 27 Jan 2011 16:49:23 +0100 Subject: merge: reset indicator-sound.h values --- src/indicator-sound.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/indicator-sound.h') diff --git a/src/indicator-sound.h b/src/indicator-sound.h index a7468fb..c52a62a 100644 --- a/src/indicator-sound.h +++ b/src/indicator-sound.h @@ -54,7 +54,7 @@ struct _IndicatorSound { GType indicator_sound_get_type (void); void prepare_state_machine(); -extern void update_state_from_volume(gdouble volume_percent); +extern void determine_state_from_volume(gdouble volume_percent); gint get_state(); gchar* get_state_image_name(gint state); void prepare_for_tests(IndicatorObject * io); -- cgit v1.2.3