]> git.0d.be Git - empathy.git/commitdiff
empathy-ft-manager.c: Display an error if user can't save file to the chosen location
authorXavier Claessens <xclaesse@src.gnome.org>
Fri, 21 Nov 2008 16:21:09 +0000 (16:21 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 21 Nov 2008 16:21:09 +0000 (16:21 +0000)
svn path=/trunk/; revision=1852

libempathy-gtk/empathy-ft-manager.c

index 7ccc8f4af09e47efba55989e60400270f6c49273..329d6e0045ea74e57bfe5bb6834e25c54184138f 100644 (file)
@@ -769,8 +769,24 @@ ft_manager_save_dialog_response_cb (GtkDialog *widget,
 
           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;
             }