From fb6bd4a322ffd282be83537d98222c162b25560b Mon Sep 17 00:00:00 2001 From: Al Poole Date: Fri, 1 Sep 2017 14:11:35 +0100 Subject: [PATCH] welcome: center file selector window when opening existing project. This patch will center the window over the existing dialogue in the same region of the screen. Neater and more intuitive. --- src/bin/screens/edi_welcome.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/screens/edi_welcome.c b/src/bin/screens/edi_welcome.c index 0c2400a..03e3ee7 100644 --- a/src/bin/screens/edi_welcome.c +++ b/src/bin/screens/edi_welcome.c @@ -149,6 +149,7 @@ _edi_welcome_project_choose_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNU elm_fileselector_sort_method_set(fs, ELM_FILESELECTOR_SORT_BY_FILENAME_ASC); evas_object_resize(win, 380 * elm_config_scale_get(), 260 * elm_config_scale_get()); + elm_win_center(win, EINA_TRUE, EINA_TRUE); evas_object_show(win); }