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
This commit is contained in:
Gustavo Sverzut Barbieri 2012-09-11 23:01:32 +00:00
parent 016392e5d4
commit 9022690ed6
1 changed files with 7 additions and 2 deletions

View File

@ -150,7 +150,9 @@ _save_to(const char *file)
snprintf(opts, sizeof(opts), "quality=%i", quality); snprintf(opts, sizeof(opts), "quality=%i", quality);
if (screen == -1) 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 else
{ {
@ -182,7 +184,10 @@ _save_to(const char *file)
memcpy(d, s, z->w * 4); memcpy(d, s, z->w * 4);
d += 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); evas_object_del(o);
} }
} }