aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2011-08-30 00:30:48 +0000
committerCarsten Haitzler <raster@rasterman.com>2011-08-30 00:30:48 +0000
commitd6f5442a511b3b02623f4e6a6ace4f9fdbdbeffe (patch)
treef7b2181c34f82d3e933ba794b2cc48544d211dda /src
parent59f1ac1d5fdb3074d5519d79bcb80ce48d3f7dc5 (diff)
downloadenlightenment-d6f5442a511b3b02623f4e6a6ace4f9fdbdbeffe.tar.gz
enlightenment-d6f5442a511b3b02623f4e6a6ace4f9fdbdbeffe.tar.xz
enlightenment-d6f5442a511b3b02623f4e6a6ace4f9fdbdbeffe.zip
seed fsel with filename (shot.jpg)
SVN revision: 62979
Diffstat (limited to 'src')
-rw-r--r--src/modules/shot/e_mod_main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/shot/e_mod_main.c b/src/modules/shot/e_mod_main.c
index f4a85c793..80b49053e 100644
--- a/src/modules/shot/e_mod_main.c
+++ b/src/modules/shot/e_mod_main.c
@@ -201,6 +201,7 @@ _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)
@@ -227,12 +228,13 @@ _win_save_cb(void *data __UNUSED__, void *data2 __UNUSED__)
E_Dialog *dia;
Evas_Object *o;
Evas_Coord mw, mh;
-
+
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, "~/", "/", NULL, NULL,
+ o = e_widget_fsel_add(dia->win->evas, "~/", "/", "shot.jpg", NULL,
NULL, NULL,
NULL, NULL, 1);
+ e_widget_fsel_window_object_set(o, E_OBJECT(dia->win));
o_fsel = o;
evas_object_show(o);
e_widget_size_min_get(o, &mw, &mh);