aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHarry van Haaren <harryhaaren@gmail.com>2011-07-28 13:32:58 +0100
committerHarry van Haaren <harryhaaren@gmail.com>2011-07-28 13:32:58 +0100
commitc53c671e8e453068d1ee0b9186d6e337797b4d60 (patch)
treee3b1cd48953c8a1363626475b67bd63c1fa01404 /src
parent4a74ac2d00bf6d093447a27cea421ad6ea6810f2 (diff)
downloadayatana-indicator-sound-c53c671e8e453068d1ee0b9186d6e337797b4d60.tar.gz
ayatana-indicator-sound-c53c671e8e453068d1ee0b9186d6e337797b4d60.tar.bz2
ayatana-indicator-sound-c53c671e8e453068d1ee0b9186d6e337797b4d60.zip
Fixed assertion of WidgetPath
Diffstat (limited to 'src')
-rw-r--r--src/transport-widget.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/transport-widget.c b/src/transport-widget.c
index 81fbac6..c1ff794 100644
--- a/src/transport-widget.c
+++ b/src/transport-widget.c
@@ -187,8 +187,12 @@ transport_widget_init (TransportWidget *self)
//g_object_set (gtk_settings_get_default (), "gtk-enable-animations", TRUE, NULL);
- gtk_widget_path_iter_set_name (spinner_widget_path, 0 , "IndicatorSoundSpinner");
gtk_widget_path_append_type (spinner_widget_path, GTK_TYPE_SPINNER);
+ gtk_widget_path_iter_set_name (spinner_widget_path, 1 , "IndicatorSoundSpinner");
+
+ gtk_widget_path_iter_add_class(spinner_widget_path,-1,GTK_STYLE_CLASS_SPINNER);
+
+ gtk_style_context_add_class(spinner_style_context,GTK_STYLE_CLASS_SPINNER);
gtk_style_context_set_path (spinner_style_context, spinner_widget_path);
gtk_style_context_add_class (spinner_style_context, GTK_STYLE_CLASS_SPINNER);
@@ -1790,6 +1794,8 @@ draw (GtkWidget* button, cairo_t *cr)
}
else if(priv->current_state == TRANSPORT_STATE_LAUNCHING)
{
+ gtk_style_context_set_state (spinner_style_context, GTK_STATE_FLAG_ACTIVE);
+
gdouble progress;
gtk_style_context_state_is_running(spinner_style_context, GTK_STATE_ACTIVE, &progress);
@@ -1929,7 +1935,6 @@ transport_widget_property_update(DbusmenuMenuitem* item, gchar* property,
transport_widget_fade_playbutton,
bar);
g_debug("TransportWidget::toggle play state : %i", priv->current_state);
- gtk_style_context_set_state (spinner_style_context, GTK_STATE_FLAG_ACTIVE);
}
else{
if (priv->launching_timer != 0){