diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-03-16 10:59:17 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-03-16 10:59:17 -0500 |
commit | 324a229148cc6c7daedbfebccc01250615604ce7 (patch) | |
tree | 5ecfd9806b7b064b2a8c47ecd900a4931af7f475 /src/indicator-sound.c | |
parent | bb95a845666552095ee043094cc890f64294b299 (diff) | |
parent | 380631efc3397de66c9ac8309c69802c4e04195d (diff) | |
download | ayatana-indicator-sound-324a229148cc6c7daedbfebccc01250615604ce7.tar.gz ayatana-indicator-sound-324a229148cc6c7daedbfebccc01250615604ce7.tar.bz2 ayatana-indicator-sound-324a229148cc6c7daedbfebccc01250615604ce7.zip |
don't abort isound via g_error() if it can't connect to the bus. lp:~cjcurran/indicator-sound/use_g_critical_instead_of_g_error
Diffstat (limited to 'src/indicator-sound.c')
-rw-r--r-- | src/indicator-sound.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/indicator-sound.c b/src/indicator-sound.c index 243e759..272c8da 100644 --- a/src/indicator-sound.c +++ b/src/indicator-sound.c @@ -299,8 +299,8 @@ connection_changed (IndicatorServiceManager * sm, node_info = g_dbus_node_info_new_for_xml ( _sound_service, &error ); if (error != NULL) { - g_warning( "Failed to get create interface info from xml: %s", - error->message ); + g_critical ( "Failed to get create interface info from xml: %s", + error->message ); g_error_free(error); return; } @@ -310,7 +310,7 @@ connection_changed (IndicatorServiceManager * sm, interface_info = g_dbus_node_info_lookup_interface (node_info, INDICATOR_SOUND_DBUS_INTERFACE); if (interface_info == NULL) { - g_error("Unable to find interface '" INDICATOR_SOUND_DBUS_INTERFACE "'"); + g_critical ("Unable to find interface '" INDICATOR_SOUND_DBUS_INTERFACE "'"); } } @@ -339,7 +339,7 @@ static void create_connection_to_service (GObject *source_object, priv->dbus_proxy = g_dbus_proxy_new_finish(res, &error); if (error != NULL) { - g_warning("Failed to get dbus proxy: %s", error->message); + g_critical ("Failed to get dbus proxy: %s", error->message); g_error_free(error); return; } |