rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=b4cb653a8f5414e4875d738c4b6dc83c8a4a81b2

commit b4cb653a8f5414e4875d738c4b6dc83c8a4a81b2
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Tue Dec 15 17:23:18 2015 +0200

    tabs: add opening group as change to history
---
 src/bin/ui/tabs.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/bin/ui/tabs.c b/src/bin/ui/tabs.c
index d54dd9d..b5ea1d8 100644
--- a/src/bin/ui/tabs.c
+++ b/src/bin/ui/tabs.c
@@ -501,6 +501,8 @@ void
 tabs_tab_add(Group *group)
 {
    Tabs_Item *item;
+   Eina_Stringshare *msg;
+   Change *change;
 
    assert(group != NULL);
 
@@ -527,6 +529,11 @@ tabs_tab_add(Group *group)
    elm_toolbar_item_selected_set(item->toolbar_item, true);
    elm_object_item_signal_callback_add(item->toolbar_item, "tab,close", 
"eflete", _tab_close, (void *)item);
    tabs.items = eina_list_append(tabs.items, item);
+
+   msg = eina_stringshare_printf(_("open group \"%s\""), group->name);
+   change = change_add(msg);
+   history_change_add(group->history, change);
+   eina_stringshare_del(msg);
 }
 
 void

-- 


Reply via email to