aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-01-24 19:05:05 -0600
committerConor Curran <conor.curran@canonical.com>2011-01-24 19:05:05 -0600
commit72165a8281fe45defba8a2b834ec6698b6d116b1 (patch)
treed229645c4cc2669510983f3bdc21ad2a095de9f2
parent729ff587783dcf571b4a94132b57bce695a5e30f (diff)
downloadayatana-indicator-sound-72165a8281fe45defba8a2b834ec6698b6d116b1.tar.gz
ayatana-indicator-sound-72165a8281fe45defba8a2b834ec6698b6d116b1.tar.bz2
ayatana-indicator-sound-72165a8281fe45defba8a2b834ec6698b6d116b1.zip
operational
-rw-r--r--src/Makefile.am2
-rw-r--r--src/sound-state-manager.c4
-rw-r--r--src/volume-widget.c3
3 files changed, 4 insertions, 5 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index b5c9fc3..79786af 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -97,7 +97,7 @@ indicator_sound_service_SOURCES = \
slider-menu-item.c \
mute-menu-item.h \
mute-menu-item.c \
- gen-sound-service.xml.h \
+ gen-sound-service.xml.h \
gen-sound-service.xml.c \
$(music_bridge_VALASOURCES:.vala=.c)
diff --git a/src/sound-state-manager.c b/src/sound-state-manager.c
index bd2140a..004e011 100644
--- a/src/sound-state-manager.c
+++ b/src/sound-state-manager.c
@@ -86,10 +86,12 @@ static void
sound_state_manager_class_init (SoundStateManagerClass *klass)
{
GObjectClass* object_class = G_OBJECT_CLASS (klass);
- //GObjectClass* parent_class = G_OBJECT_CLASS (klass);
object_class->finalize = sound_state_manager_finalize;
object_class->dispose = sound_state_manager_dispose;
+
+ g_type_class_add_private (klass, sizeof (SoundStateManagerPrivate));
+
design_team_size = gtk_icon_size_register("design-team-size", 22, 22);
}
diff --git a/src/volume-widget.c b/src/volume-widget.c
index 38dc9bb..ceebec5 100644
--- a/src/volume-widget.c
+++ b/src/volume-widget.c
@@ -137,7 +137,6 @@ volume_widget_property_update( DbusmenuMenuitem* item, gchar* property,
gdouble update = g_variant_get_double (value);
//g_debug("volume-widget - update level with value %f", update);
gtk_range_set_value(range, update);
- determine_state_from_volume(update);
}
}
}
@@ -157,7 +156,6 @@ volume_widget_set_twin_item(VolumeWidget* self,
GtkWidget *slider = ido_scale_menu_item_get_scale((IdoScaleMenuItem*)priv->ido_volume_slider);
GtkRange *range = (GtkRange*)slider;
gtk_range_set_value(range, initial_level);
- determine_state_from_volume(initial_level);
}
static gboolean
@@ -169,7 +167,6 @@ volume_widget_change_value_cb (GtkRange *range,
g_return_val_if_fail (IS_VOLUME_WIDGET (user_data), FALSE);
VolumeWidget* mitem = VOLUME_WIDGET(user_data);
volume_widget_update(mitem, new_value);
- determine_state_from_volume(new_value);
return FALSE;
}