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

git pushed a commit to branch main
in repository scribble.

View the commit online.

commit b057b19e64ac0b06d64095c626624f2713b93644
Author: Alastair Poole <[email protected]>
AuthorDate: Thu Nov 26 19:14:39 2026 +0000

    toolbar: SELECT_MODE_NONE
---
 src/bin/scribble_main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/bin/scribble_main.c b/src/bin/scribble_main.c
index 9de5dc7..6cb9704 100644
--- a/src/bin/scribble_main.c
+++ b/src/bin/scribble_main.c
@@ -1493,7 +1493,7 @@ scribble_action_run(Scribble_App *app, Scribble_Action action)
 }
 
 static void
-scribble_toolbar_selected(void *data, Evas_Object *object EINA_UNUSED,
+scribble_toolbar_activated(void *data, Evas_Object *object EINA_UNUSED,
                           void *event EINA_UNUSED)
 {
    Scribble_Command *command;
@@ -1501,7 +1501,6 @@ scribble_toolbar_selected(void *data, Evas_Object *object EINA_UNUSED,
    command = data;
    if (elm_object_item_disabled_get(command->app->actions[command->action])) return;
 
-   elm_toolbar_item_selected_set(command->app->actions[command->action], EINA_FALSE);
    scribble_action_run(command->app, command->action);
 }
 
@@ -1982,6 +1981,7 @@ scribble_toolbar_create(Scribble_App *app)
    elm_toolbar_icon_size_set(toolbar, 19);
    elm_toolbar_align_set(toolbar, 0.0);
    elm_toolbar_shrink_mode_set(toolbar, ELM_TOOLBAR_SHRINK_SCROLL);
+   elm_toolbar_select_mode_set(toolbar, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
    evas_object_size_hint_weight_set(toolbar, EVAS_HINT_EXPAND, 0);
    evas_object_size_hint_align_set(toolbar, EVAS_HINT_FILL, EVAS_HINT_FILL);
    for (index = 0; index < EINA_C_ARRAY_LENGTH(scribble_toolbar_items); index++)
@@ -1998,7 +1998,7 @@ scribble_toolbar_create(Scribble_App *app)
         command->action = ""
         app->actions[command->action] = elm_toolbar_item_append(
           toolbar, scribble_toolbar_items[index].icon,
-          NULL, scribble_toolbar_selected, command);
+          NULL, scribble_toolbar_activated, command);
         scribble_theme_toolbar_icon_set(app->actions[command->action],
                                          scribble_toolbar_items[index].glyph);
         elm_object_item_tooltip_text_set(app->actions[command->action],

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

Reply via email to