[SF#730] Fix initial icon on 'volumealsa' to show real state instead of muted.
authorAndriy Grytsenko <andrej@rep.kiev.ua>
Sat, 2 May 2015 14:20:59 +0000 (17:20 +0300)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Sat, 2 May 2015 14:20:59 +0000 (17:20 +0300)
The call to volumealsa_update_current_icon() was missed while
volumealsa_update_display() which was called never updates icon.

ChangeLog
plugins/volumealsa/volumealsa.c
src/panel.c

index 86aad7a..e7cc401 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 * Fixed incorrect cycle in netproc_devicelist_clear() leading to crash on
     resume (after suspend).
 * Fixed scanning for temperature sensors which failed with some kernels.
+* Changed reconfiguring panel behavior: callbacks to plugins will be sent
+    on idle, not immediately to avoid "stuck" spin button (and eventually
+    even crash was possible).
+* Fixed initial icon on 'volumealsa' to show real state instead of muted.
 
 0.8.0
 -------------------------------------------------------------------------
index 8bbce30..77d2782 100644 (file)
@@ -667,6 +667,7 @@ static GtkWidget *volumealsa_constructor(LXPanel *panel, config_setting_t *setti
 
     /* Update the display, show the widget, and return. */
     volumealsa_update_display(vol);
+    volumealsa_update_current_icon(vol, asound_is_muted(vol), asound_get_volume(vol));
     gtk_widget_show_all(p);
     return p;
 }
index 3adf67e..940a919 100644 (file)
@@ -1700,9 +1700,7 @@ static gboolean _panel_idle_reconfigure(gpointer widget)
 void _panel_set_panel_configuration_changed(LXPanel *panel)
 {
     if (panel->priv->reconfigure_queued)
-    {
         return;
-    }
     panel->priv->reconfigure_queued = g_idle_add(_panel_idle_reconfigure, panel);
 }