aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-09-11 23:01:32 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-09-11 23:01:32 +0000
commit9022690ed602e745533e24558d310da5331d179d (patch)
treee06e87117a9c0174582bfc397373b135f7b018b9 /src/modules
parent016392e5d497db83e4dd97f205ad0d49f57a2be6 (diff)
downloadenlightenment-9022690ed602e745533e24558d310da5331d179d.tar.gz
enlightenment-9022690ed602e745533e24558d310da5331d179d.tar.xz
enlightenment-9022690ed602e745533e24558d310da5331d179d.zip
shot: be loud about saving errors.
everytime I type "/tmp/bla.png" as save file I get errors and it's silent. SVN revision: 76480
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/shot/e_mod_main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/modules/shot/e_mod_main.c b/src/modules/shot/e_mod_main.c
index 9b87a5bd7..d6e7d7f39 100644
--- a/src/modules/shot/e_mod_main.c
+++ b/src/modules/shot/e_mod_main.c
@@ -150,7 +150,9 @@ _save_to(const char *file)
snprintf(opts, sizeof(opts), "quality=%i", quality);
if (screen == -1)
{
- evas_object_image_save(o_img, file, NULL, opts);
+ if (!evas_object_image_save(o_img, file, NULL, opts))
+ e_util_dialog_show(_("Error saving screenshot file"),
+ _("Path: %s"), file);
}
else
{
@@ -182,7 +184,10 @@ _save_to(const char *file)
memcpy(d, s, z->w * 4);
d += z->w * 4;
}
- evas_object_image_save(o, file, NULL, opts);
+ if (!evas_object_image_save(o, file, NULL, opts))
+ e_util_dialog_show(_("Error saving screenshot file"),
+ _("Path: %s"), file);
+
evas_object_del(o);
}
}