empathy r1852 - trunk/libempathy-gtk
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r1852 - trunk/libempathy-gtk
- Date: Fri, 21 Nov 2008 16:21:10 +0000 (UTC)
Author: xclaesse
Date: Fri Nov 21 16:21:09 2008
New Revision: 1852
URL: http://svn.gnome.org/viewvc/empathy?rev=1852&view=rev
Log:
empathy-ft-manager.c: Display an error if user can't save file to the chosen location
Modified:
trunk/libempathy-gtk/empathy-ft-manager.c
Modified: trunk/libempathy-gtk/empathy-ft-manager.c
==============================================================================
--- trunk/libempathy-gtk/empathy-ft-manager.c (original)
+++ trunk/libempathy-gtk/empathy-ft-manager.c Fri Nov 21 16:21:09 2008
@@ -769,8 +769,24 @@
if (error)
{
- g_warning ("Error with opening file to write to: %s",
+ GtkWidget *dialog;
+
+ DEBUG ("Error with opening file to write to: %s",
error->message ? error->message : "no error");
+
+ /* Error is already translated */
+ dialog = gtk_message_dialog_new (NULL, 0, GTK_MESSAGE_ERROR,
+ GTK_BUTTONS_CLOSE, _("Cannot save file to this location"));
+
+ gtk_message_dialog_format_secondary_text (
+ GTK_MESSAGE_DIALOG (dialog),
+ error->message);
+
+ g_signal_connect (dialog, "response",
+ G_CALLBACK (gtk_widget_destroy), NULL);
+
+ gtk_widget_show (dialog);
+
g_error_free (error);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]