netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/evisum.git/commit/?id=bb5d3a802b969f760139da3aa3228df30d79d900

commit bb5d3a802b969f760139da3aa3228df30d79d900
Author: Alastair Poole <nets...@gmail.com>
Date:   Mon Jul 13 14:29:03 2020 +0100

    search: Show search entry icon.
---
 src/bin/ui/ui.c | 15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)

diff --git a/src/bin/ui/ui.c b/src/bin/ui/ui.c
index 6d7ffd2..0feb19a 100644
--- a/src/bin/ui/ui.c
+++ b/src/bin/ui/ui.c
@@ -1298,7 +1298,7 @@ static Evas_Object *
 _ui_content_add(Evas_Object *parent, Ui *ui)
 {
    Evas_Object *table, *box, *entry, *hbox, *frame;
-   Evas_Object *border;
+   Evas_Object *ic;
 
    ui->content = table = elm_table_add(parent);
    evas_object_size_hint_weight_set(table, EXPAND, EXPAND);
@@ -1309,7 +1309,7 @@ _ui_content_add(Evas_Object *parent, Ui *ui)
    frame = elm_frame_add(parent);
    evas_object_size_hint_weight_set(frame, EXPAND, 0);
    evas_object_size_hint_align_set(frame, FILL, FILL);
-   elm_object_style_set(frame, "pad_small");
+   elm_object_style_set(frame, "pad_medium");
    evas_object_show(frame);
 
    hbox = elm_box_add(parent);
@@ -1324,12 +1324,6 @@ _ui_content_add(Evas_Object *parent, Ui *ui)
    elm_box_horizontal_set(box, EINA_TRUE);
    evas_object_show(box);
 
-   border = elm_frame_add(parent);
-   evas_object_size_hint_weight_set(border, EXPAND, EXPAND);
-   evas_object_size_hint_align_set(border, FILL, FILL);
-   elm_object_style_set(border, "pad_small");
-   evas_object_show(border);
-
    ui->entry_search = entry = elm_entry_add(parent);
    evas_object_size_hint_weight_set(entry, EXPAND, EXPAND);
    evas_object_size_hint_align_set(entry, FILL, FILL);
@@ -1338,17 +1332,14 @@ _ui_content_add(Evas_Object *parent, Ui *ui)
    elm_entry_editable_set(entry, EINA_TRUE);
    evas_object_show(entry);
 
-   /*
    ic = elm_icon_add(parent);
    elm_icon_standard_set(ic, evisum_icon_path_get("find"));
    evas_object_size_hint_min_set(ic, 24, 24);
    evas_object_show(ic);
    evas_object_color_set(ic, 64, 64, 64, 255);
    elm_object_part_content_set(entry, "icon", ic);
-   */
 
-   elm_object_content_set(border, entry);
-   elm_box_pack_end(box, border);
+   elm_box_pack_end(box, entry);
 
    elm_object_content_set(frame, box);
    elm_box_pack_end(hbox, frame);

-- 


Reply via email to