Commit b15069bf authored by Emmanuel Milou's avatar Emmanuel Milou
parents f7ea2073 0c7dcba1
......@@ -566,29 +566,22 @@ error_alert(DBusGProxy *proxy UNUSED, int err, void *foo UNUSED)
switch (err) {
case ALSA_PLAYBACK_DEVICE:
msg = _("ALSA notification\n\nError while opening playback device");
msg = _("ALSA notification: Error while opening playback device");
break;
case ALSA_CAPTURE_DEVICE:
msg = _("ALSA notification\n\nError while opening capture device");
msg = _("ALSA notification: Error while opening capture device");
break;
case PULSEAUDIO_NOT_RUNNING:
msg = _("Pulseaudio notification\n\nPulseaudio is not running");
msg = _("Pulseaudio notification: Pulseaudio is not running");
break;
case CODECS_NOT_LOADED:
msg = _("Codecs notification\n\nCodecs not found");
msg = _("Codecs notification: Codecs not found");
break;
default:
return;
}
GtkWidget *dialog = gtk_message_dialog_new(GTK_WINDOW(get_main_window()),
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, "%s", msg);
gtk_window_set_title(GTK_WINDOW(dialog), _("SFLphone Error"));
g_signal_connect(dialog, "response", G_CALLBACK(gtk_widget_destroy), NULL);
gtk_widget_show(dialog);
ERROR("%s", msg);
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment