summaryrefslogtreecommitdiff
path: root/src/bin/test_fileselector.c
diff options
context:
space:
mode:
authorRyuan Choi <ryuan.choi@gmail.com>2014-10-06 08:08:24 +0900
committerRyuan Choi <ryuan.choi@gmail.com>2014-10-06 08:08:24 +0900
commitecdacf03537f210f17c3c572e13f20023f32992f (patch)
tree9c4f86c293472f4d6edf0838eaa283031d43d401 /src/bin/test_fileselector.c
parent9a6dce7f68631f925c949d299ba2131c31e91ee0 (diff)
Introduce current_name_{set|get}
Summary: When fileselector is opened, it would be nice to be able to provide initial filename. Like "Untitled Document" in Gedit, when save for the first time. More details in Gedit, Gedit provies default name, "Untitled Document" and does not change default name while navigating directories. Once we selected any file, Gedit changes value of name entry to selected filename and it is not also changed while navigating directories. @feature Reviewers: seoz, yakov-g Reviewed By: yakov-g Subscribers: seoz Maniphest Tasks: T1664 Differential Revision: https://phab.enlightenment.org/D1504
Diffstat (limited to '')
-rw-r--r--src/bin/test_fileselector.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/test_fileselector.c b/src/bin/test_fileselector.c
index b32cd87bd..18dcae602 100644
--- a/src/bin/test_fileselector.c
+++ b/src/bin/test_fileselector.c
@@ -550,6 +550,9 @@ test_fileselector(void *data EINA_UNUSED,
550 /* start the fileselector in the home dir */ 550 /* start the fileselector in the home dir */
551 elm_fileselector_path_set(fs, getenv("HOME")); 551 elm_fileselector_path_set(fs, getenv("HOME"));
552 552
553 /* provides suggested name (just for showing) */
554 elm_fileselector_current_name_set(fs, "No name");
555
553 /* add filesters */ 556 /* add filesters */
554 elm_fileselector_mime_types_filter_append(fs, "text/*", "Text Files"); 557 elm_fileselector_mime_types_filter_append(fs, "text/*", "Text Files");
555 elm_fileselector_mime_types_filter_append(fs, "image/*", "Image Files"); 558 elm_fileselector_mime_types_filter_append(fs, "image/*", "Image Files");