From ac41da50ee1e83c0c412770680703278fb149670 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Fri, 23 Feb 2024 12:56:48 +0300 Subject: [PATCH] (edit_get_file_name): move from editwidget.c to edit.c. Signed-off-by: Andrew Borodin --- src/editor/edit.c | 8 ++++++++ src/editor/editwidget.c | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/editor/edit.c b/src/editor/edit.c index 860f3d593..e9b93156a 100644 --- a/src/editor/edit.c +++ b/src/editor/edit.c @@ -4221,3 +4221,11 @@ edit_arg_free (edit_arg_t * arg) } /* --------------------------------------------------------------------------------------------- */ + +const char * +edit_get_file_name (const WEdit * edit) +{ + return vfs_path_as_str (edit->filename_vpath); +} + +/* --------------------------------------------------------------------------------------------- */ diff --git a/src/editor/editwidget.c b/src/editor/editwidget.c index 89fc24075..90d83ffef 100644 --- a/src/editor/editwidget.c +++ b/src/editor/editwidget.c @@ -1288,14 +1288,6 @@ edit_files (const GList * files) /* --------------------------------------------------------------------------------------------- */ -const char * -edit_get_file_name (const WEdit * edit) -{ - return vfs_path_as_str (edit->filename_vpath); -} - -/* --------------------------------------------------------------------------------------------- */ - WEdit * edit_find_editor (const WDialog * h) { -- 2.11.4.GIT