about: dismiss when clicking on the terminal

This commit is contained in:
Boris Faure 2020-07-18 16:17:47 +02:00
parent 6846074343
commit ce788a69f6
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
1 changed files with 2 additions and 0 deletions

View File

@ -185,6 +185,8 @@ about_show(Evas_Object *win, Evas_Object *base, Evas_Object *term,
eina_stringshare_del(txt);
evas_object_show(o);
elm_layout_content_set(base, "terminology.about", ctx->layout);
evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_DOWN,
_cb_mouse_down, ctx);
ctx->over = o = evas_object_rectangle_add(evas_object_evas_get(win));
evas_object_color_set(o, 0, 0, 0, 0);