forked from enlightenment/edi
filepanek: set the filepanel focus on editor focus.
Tab selection will focus the editor. This fixes occasions when clicking between panels. So the filepanel focus is uniform. Should have thought of doing it this way before.
This commit is contained in:
parent
482c7b0946
commit
514e472cd1
|
@ -10,6 +10,7 @@
|
|||
#include "edi_editor.h"
|
||||
|
||||
#include "mainview/edi_mainview.h"
|
||||
#include "edi_filepanel.h"
|
||||
#include "edi_config.h"
|
||||
|
||||
#include "language/edi_language_provider.h"
|
||||
|
@ -982,6 +983,8 @@ _focused_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUS
|
|||
code = elm_code_widget_code_get(editor->entry);
|
||||
filename = elm_code_file_path_get(code->file);
|
||||
|
||||
edi_filepanel_select_path(filename);
|
||||
|
||||
mtime = ecore_file_mod_time(filename);
|
||||
|
||||
if ((editor->save_time) && (editor->save_time < mtime))
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
#include "mainview/edi_mainview_panel.h"
|
||||
#include "mainview/edi_mainview.h"
|
||||
|
||||
#include "edi_filepanel.h"
|
||||
#include "editor/edi_editor.h"
|
||||
#include "edi_content_provider.h"
|
||||
|
||||
|
@ -283,8 +282,6 @@ _promote(void *data, Evas_Object *obj EINA_UNUSED,
|
|||
editor = (Edi_Editor *)evas_object_data_get(panel->current->view, "editor");
|
||||
if (editor)
|
||||
elm_object_focus_set(editor->entry, EINA_TRUE);
|
||||
|
||||
edi_filepanel_select_path(item->path);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue