diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-09-15 12:47:34 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-09-15 12:47:34 +0100 |
commit | 3532b6aa96f157cf535244687d1330ba549fe3a9 (patch) | |
tree | 0b1a2db5ba80a45f99bea3aa6b6a941e3308a810 /src/indicator-sound.c | |
parent | 4b7abb73527b7ce240c15d408b00afa6a80a3c07 (diff) | |
parent | f27482a3ce736b815dc57935e1cd5d392c698053 (diff) | |
download | ayatana-indicator-sound-3532b6aa96f157cf535244687d1330ba549fe3a9.tar.gz ayatana-indicator-sound-3532b6aa96f157cf535244687d1330ba549fe3a9.tar.bz2 ayatana-indicator-sound-3532b6aa96f157cf535244687d1330ba549fe3a9.zip |
merged in fixes of empty album art and racey indicator crash in the event of the service crashing
Diffstat (limited to 'src/indicator-sound.c')
-rw-r--r-- | src/indicator-sound.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/indicator-sound.c b/src/indicator-sound.c index 0aa93b3..35045d7 100644 --- a/src/indicator-sound.c +++ b/src/indicator-sound.c @@ -365,7 +365,9 @@ connection_changed (IndicatorServiceManager * sm, gboolean connected, gpointer u IndicatorSound* indicator = INDICATOR_SOUND(user_data); fetch_sink_availability_from_dbus(indicator); IndicatorSoundPrivate* priv = INDICATOR_SOUND_GET_PRIVATE(indicator); - determine_state_from_volume (volume_widget_get_current_volume(priv->volume_widget)); + if(priv->volume_widget != NULL){ + determine_state_from_volume (volume_widget_get_current_volume(priv->volume_widget)); + } } } else{ @@ -557,8 +559,11 @@ fetch_sink_availability_from_dbus(IndicatorSound* self) } IndicatorSoundPrivate* priv = INDICATOR_SOUND_GET_PRIVATE(self); - GtkWidget* slider_widget = volume_widget_get_ido_slider(VOLUME_WIDGET(priv->volume_widget)); - gtk_widget_set_sensitive(slider_widget, device_available); + + if(priv->volume_widget != NULL){ + GtkWidget* slider_widget = volume_widget_get_ido_slider(VOLUME_WIDGET(priv->volume_widget)); + gtk_widget_set_sensitive(slider_widget, device_available); + } g_free(available_input); g_debug("IndicatorSound::fetch_sink_availability_from_dbus ->%i", device_available); |