raster pushed a commit to branch master.

http://git.enlightenment.org/apps/ecrire.git/commit/?id=401e31585152591a5db690bd4c4cb8a7f9da7bc2

commit 401e31585152591a5db690bd4c4cb8a7f9da7bc2
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Thu Apr 8 15:47:09 2021 +0100

    remove frame around entry - superflous and space filling
---
 src/bin/Ecrire.h |  1 -
 src/bin/main.c   | 13 +------------
 2 files changed, 1 insertion(+), 13 deletions(-)

diff --git a/src/bin/Ecrire.h b/src/bin/Ecrire.h
index b9f1a4a..9b50ca2 100644
--- a/src/bin/Ecrire.h
+++ b/src/bin/Ecrire.h
@@ -15,7 +15,6 @@ extern int _ecrire_log_dom;
 typedef struct _Ecrire_Editor
 {
      Evas_Object *win;
-     Evas_Object *frame;
      Evas_Object *entry;
 
      Evas_Object *search_win;
diff --git a/src/bin/main.c b/src/bin/main.c
index b4562fc..6741974 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -118,11 +118,6 @@ _update_cur_file(const char *file, Ecrire_Editor *inst)
      snprintf(buf, sizeof(buf), _("%sUntitled %d - %s"), saving,
               inst->unsaved, PACKAGE_NAME);
 
-   if (inst->filename)
-     elm_object_text_set(inst->frame, inst->filename);
-   else
-     elm_object_text_set(inst->frame, buf);
-
    elm_win_title_set(inst->win, buf);
 }
 
@@ -743,19 +738,13 @@ ecrire_editor_add(const char *filename, const char 
*font_name, int font_size)
    toolbar = _ecrire_toolbar_add(inst);
    elm_box_pack_end(bx, toolbar);
 
-   inst->frame = fr = elm_frame_add(win);
-   evas_object_size_hint_align_set(fr, EVAS_HINT_FILL, EVAS_HINT_FILL);
-   evas_object_size_hint_weight_set(fr, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-   evas_object_show(fr);
-
    inst->entry = entry = elm_entry_add(win);
    elm_entry_scrollable_set(entry, EINA_TRUE);
    elm_entry_line_wrap_set(entry, _ent_cfg->wrap_type);
    elm_entry_cnp_mode_set(entry, ELM_CNP_MODE_PLAINTEXT);
    evas_object_size_hint_align_set(entry, EVAS_HINT_FILL, EVAS_HINT_FILL);
    evas_object_size_hint_weight_set(entry, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-   elm_object_content_set(fr, entry);
-   elm_box_pack_end(bx, fr);
+   elm_box_pack_end(bx, entry);
    evas_object_show(entry);
 
    pad = elm_frame_add(win);

-- 


Reply via email to