aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-11-22 00:21:09 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-11-22 00:21:09 +0800
commit9a0512ae698c39e9ffd5abe7e863ac969c9e9e36 (patch)
treef65d8d0056e226ccb5c28b4ed522ca8ead1ae75e /libempathy-gtk
parente550682ac250d82f57ed8242c1db5fbc2d2f9cd2 (diff)
downloadgsoc2013-empathy-9a0512ae698c39e9ffd5abe7e863ac969c9e9e36.tar
gsoc2013-empathy-9a0512ae698c39e9ffd5abe7e863ac969c9e9e36.tar.gz
gsoc2013-empathy-9a0512ae698c39e9ffd5abe7e863ac969c9e9e36.tar.bz2
gsoc2013-empathy-9a0512ae698c39e9ffd5abe7e863ac969c9e9e36.tar.lz
gsoc2013-empathy-9a0512ae698c39e9ffd5abe7e863ac969c9e9e36.tar.xz
gsoc2013-empathy-9a0512ae698c39e9ffd5abe7e863ac969c9e9e36.tar.zst
gsoc2013-empathy-9a0512ae698c39e9ffd5abe7e863ac969c9e9e36.zip
empathy-ft-manager.c: Display an error if user can't save file to the chosen location
svn path=/trunk/; revision=1852
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-ft-manager.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-ft-manager.c b/libempathy-gtk/empathy-ft-manager.c
index 7ccc8f4af..329d6e004 100644
--- a/libempathy-gtk/empathy-ft-manager.c
+++ b/libempathy-gtk/empathy-ft-manager.c
@@ -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;
}