This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch main
in repository equation.

View the commit online.

commit c8b6a96f3f7d34786f08575897e966a98c2d2296
Author: Alastair Poole <[email protected]>
AuthorDate: Sat Nov 21 18:40:59 2026 +0000

    about: tidy
---
 docs/equation_guide.md   |  4 ++--
 po/equation.pot          |  2 +-
 po/fr.po                 |  4 ++--
 src/fe-efl/equation_ui.c | 35 +++++++++++++++++++----------------
 tests/equation_ui_test.c |  8 +++++---
 5 files changed, 29 insertions(+), 24 deletions(-)

diff --git a/docs/equation_guide.md b/docs/equation_guide.md
index 7fb47d4..e577b93 100644
--- a/docs/equation_guide.md
+++ b/docs/equation_guide.md
@@ -56,7 +56,7 @@ values exceeding 64 bits show an error. The input base starts at Decimal each
 launch and is retained when switching modes during a session. Scientific mode
 keeps its decimal and function syntax.
 
-The burger button to the left of the window title opens Appearance, About Equation, and Quit. Choose
+The burger button to the left of the window title opens Appearance and About Equation. Use × in the upper-right corner to dismiss the menu. Choose
 Observatory (midnight blue and cyan), Atelier (warm paper and drafting marks),
 or Crazy Lab (oxidized metal, bakelite keys, warning stripes, and glowing Nixie
 tubes). A marker identifies the selected theme. Theme changes update open windows
@@ -125,7 +125,7 @@ between 0 and 63. Overflowing literals and invalid expressions are rejected.
 - `tests/equation_config_test.c`: defaults, Eet round trips, and malformed settings.
 - `tests/equation_theme_test.c`: every compiled group and frame geometry.
 - `tests/equation_ui_test.c`: real widget mouse clicks, live theme changes, About,
-  calculations, Quit, and preference restoration at scales 1, 1.5, and 2.
+  calculations, menu dismissal, and preference restoration at scales 1, 1.5, and 2.
 - `data/themes/`: per-theme EDC entry points and vector artwork, with shared
   groups under `common/groups/`. Archives install to `share/equation/themes/`.
 
diff --git a/po/equation.pot b/po/equation.pot
index b1743bf..58915d6 100644
--- a/po/equation.pot
+++ b/po/equation.pot
@@ -99,7 +99,7 @@ msgid ""
 "\n"
 "Built with Elementary / EFL\n"
 "\n"
-"(c) enlightenment development team\n"
+"© Enlightenment Development Team\n"
 "GNU General Public License, version 2"
 msgstr ""
 
diff --git a/po/fr.po b/po/fr.po
index 297bc0c..685ae95 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -101,7 +101,7 @@ msgid ""
 "\n"
 "Built with Elementary / EFL\n"
 "\n"
-"(c) enlightenment development team\n"
+"© Enlightenment Development Team\n"
 "GNU General Public License, version 2"
 msgstr ""
 "Calculatrice scientifique et de programmation\n"
@@ -109,7 +109,7 @@ msgstr ""
 "\n"
 "Développée avec Elementary / EFL\n"
 "\n"
-"© Équipe de développement de Enlightenment\n"
+"© Enlightenment Development Team\n"
 "Licence publique générale GNU, version 2"
 
 #: src/fe-efl/equation_ui.c:103 src/fe-efl/equation_ui.c:339
diff --git a/src/fe-efl/equation_ui.c b/src/fe-efl/equation_ui.c
index 869a1f2..d834446 100644
--- a/src/fe-efl/equation_ui.c
+++ b/src/fe-efl/equation_ui.c
@@ -109,8 +109,8 @@ equation_about_show(void *data, Evas_Object *object EINA_UNUSED, void *event_inf
    elm_box_pack_end(box, equation_label(ui, box, "<b>Equation " EQUATION_VERSION "</b>"));
    char *about_text = elm_entry_utf8_to_markup(
      _("Scientific and programmer calculator\nDecimal, hexadecimal and binary results\n\nBuilt with "
-       "Elementary / EFL\n\n(c) enlightenment development team\nGNU General Public License, version "
-       "2"));
+       "Elementary / EFL\n\n© Enlightenment Development Team\n"
+       "GNU General Public License, version 2"));
    elm_box_pack_end(box, equation_label(ui, box, about_text));
    free(about_text);
    equation_menu_button(box, _("Close"), equation_about_close, ui);
@@ -119,14 +119,6 @@ equation_about_show(void *data, Evas_Object *object EINA_UNUSED, void *event_inf
    evas_object_show(ui->about);
 }
 
-static void
-equation_quit(void *data, Evas_Object *object EINA_UNUSED, void *event_info EINA_UNUSED)
-{
-   Equation_Ui *ui = data;
-   evas_object_del(ui->window);
-   elm_exit();
-}
-
 static void
 equation_theme_choices_update(Equation_Ui *ui)
 {
@@ -306,11 +298,27 @@ equation_menu_show(void *data, Evas_Object *object EINA_UNUSED, void *event_info
         return;
      }
    ui->menu = elm_popup_add(ui->window);
-   elm_object_part_text_set(ui->menu, "title,text", "Equation");
    evas_object_smart_callback_add(ui->menu, "block,clicked", equation_menu_close, ui);
    Evas_Object *box = elm_box_add(ui->menu);
    elm_box_padding_set(box, 0, 6);
    evas_object_size_hint_min_set(box, 280, 0);
+   Evas_Object *header = elm_box_add(box);
+   elm_box_horizontal_set(header, EINA_TRUE);
+   evas_object_size_hint_weight_set(header, EVAS_HINT_EXPAND, 0);
+   evas_object_size_hint_align_set(header, EVAS_HINT_FILL, 0.5);
+   elm_box_pack_end(header, equation_label(ui, header, "<b>Equation</b>"));
+   Evas_Object *close = elm_button_add(header);
+   elm_object_style_set(close, "equation/window-close");
+   elm_object_text_set(close, "×");
+   elm_object_tooltip_text_set(close, _("Close"));
+   elm_object_access_info_set(close, _("Close"));
+   evas_object_name_set(close, "equation_menu_close");
+   evas_object_size_hint_min_set(close, ELM_SCALE_SIZE(28), ELM_SCALE_SIZE(28));
+   evas_object_smart_callback_add(close, "clicked", equation_menu_close, ui);
+   elm_box_pack_end(header, close);
+   evas_object_show(close);
+   elm_box_pack_end(box, header);
+   evas_object_show(header);
    elm_box_pack_end(box, equation_label(ui, box, _("<b>Appearance</b>")));
    for (unsigned i = 0; i < EINA_C_ARRAY_LENGTH(equation_theme_catalog); ++i)
      {
@@ -335,13 +343,8 @@ equation_menu_show(void *data, Evas_Object *object EINA_UNUSED, void *event_info
      evas_object_hide(ui->theme_status);
    evas_object_name_set(equation_menu_button(box, _("About Equation"), equation_about_show, ui),
                         "equation_about");
-   evas_object_name_set(equation_menu_button(box, _("Quit"), equation_quit, ui), "equation_quit");
    elm_object_content_set(ui->menu, box);
    evas_object_show(box);
-   Evas_Object *close = elm_button_add(ui->menu);
-   elm_object_text_set(close, _("Close"));
-   evas_object_smart_callback_add(close, "clicked", equation_menu_close, ui);
-   elm_object_part_content_set(ui->menu, "button1", close);
    evas_object_show(ui->menu);
    equation_theme_choices_update(ui);
 }
diff --git a/tests/equation_ui_test.c b/tests/equation_ui_test.c
index f5df3ad..4db35a6 100644
--- a/tests/equation_ui_test.c
+++ b/tests/equation_ui_test.c
@@ -335,9 +335,11 @@ main(int argc, char **argv)
    EQUATION_CHECK(clipboard.received && !strcmp(clipboard.text, "18446744073709551615"));
    menu_button = evas_object_name_find(canvas, "equation_menu");
    equation_click(menu_button);
-   Evas_Object *quit = evas_object_name_find(canvas, "equation_quit");
-   EQUATION_CHECK(quit);
-   equation_click(quit);
+   Evas_Object *close = evas_object_name_find(canvas, "equation_menu_close");
+   EQUATION_CHECK(close);
+   equation_click(close);
+   EQUATION_CHECK(!ui->menu);
+   evas_object_del(window);
    window = equation_ui_show();
    EQUATION_CHECK(window);
    ui = evas_object_data_get(window, "equation_ui");

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to