aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-01-18 23:59:12 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-01-18 23:59:12 +0000
commitb566de4bf8ed61536894e54a5c5e4cd09f42c667 (patch)
treec4e9a83b76fa40a81c23fd1d70e3a5e92e26ed31
parent6c950e981a2dbd81a4621db0daef8e2984f696c5 (diff)
downloadenlightenment-b566de4bf8ed61536894e54a5c5e4cd09f42c667.tar.gz
enlightenment-b566de4bf8ed61536894e54a5c5e4cd09f42c667.tar.xz
enlightenment-b566de4bf8ed61536894e54a5c5e4cd09f42c667.zip
fix naming of shot file on save to corrrect png/jpg - also save to
desktop by default. SVN revision: 67306
-rw-r--r--src/modules/shot/e_mod_main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/shot/e_mod_main.c b/src/modules/shot/e_mod_main.c
index 0941876cd..2313f8a2e 100644
--- a/src/modules/shot/e_mod_main.c
+++ b/src/modules/shot/e_mod_main.c
@@ -200,7 +200,6 @@ _file_select_ok_cb(void *data __UNUSED__, E_Dialog *dia)
const char *file;
file = e_widget_fsel_selection_path_get(o_fsel);
- printf("SAVE: %s\n", file);
if (file) _save_to(file);
if (dia) e_util_defer_object_del(E_OBJECT(dia));
if (win)
@@ -230,7 +229,9 @@ _win_save_cb(void *data __UNUSED__, void *data2 __UNUSED__)
dia = e_dialog_new(scon, "E", "_e_shot_fsel");
e_dialog_title_set(dia, _("Select screenshot save location"));
- o = e_widget_fsel_add(dia->win->evas, "~/", "/", "shot.jpg", NULL,
+ o = e_widget_fsel_add(dia->win->evas, "desktop", "/",
+ (quality == 100) ? "shot.png" : "shot.jpg",
+ NULL,
NULL, NULL,
NULL, NULL, 1);
e_widget_fsel_window_object_set(o, E_OBJECT(dia->win));