This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch main
in repository elaro.
View the commit online.
commit 9e0a29211fc28d00de987a36bdb76462305fd7eb
Author: Alastair Poole <[email protected]>
AuthorDate: Sat Nov 21 18:36:37 2026 +0000
settings: remove unneeded buttons.
---
src/engine/elaro_engine.c | 8 ++++++++
src/fe-efl/ui/elaro_ui_theme.h | 12 +++++++++---
2 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/src/engine/elaro_engine.c b/src/engine/elaro_engine.c
index 947b64c..918dd1d 100644
--- a/src/engine/elaro_engine.c
+++ b/src/engine/elaro_engine.c
@@ -186,6 +186,12 @@ _presence_emit(SERVER_REC *server, const char *nick, gboolean away)
elaro_engine_event_push(event);
}
+static void
+_own_away_changed(SERVER_REC *server)
+{
+ _presence_emit(server, server->nick, server->usermode_away);
+}
+
static char *
_whois_presence_key(SERVER_REC *server, const char *nick)
{
@@ -1316,6 +1322,7 @@ _run(gpointer data)
signal_add("event 311", (SIGNAL_FUNC)_user_details);
signal_add_last("nicklist gone changed", (SIGNAL_FUNC)_nick_gone_changed);
signal_add_last("event away", (SIGNAL_FUNC)_away_notify);
+ signal_add("away mode changed", (SIGNAL_FUNC)_own_away_changed);
signal_add_full(MODULE_NAME, SIGNAL_PRIORITY_HIGH - 1, "event 311",
(SIGNAL_FUNC)_whois_presence_begin, NULL);
signal_add_last("event 301", (SIGNAL_FUNC)_whois_presence_away);
@@ -1360,6 +1367,7 @@ _run(gpointer data)
signal_remove("event 311", (SIGNAL_FUNC)_user_details);
signal_remove("nicklist gone changed", (SIGNAL_FUNC)_nick_gone_changed);
signal_remove("event away", (SIGNAL_FUNC)_away_notify);
+ signal_remove("away mode changed", (SIGNAL_FUNC)_own_away_changed);
signal_remove("event 311", (SIGNAL_FUNC)_whois_presence_begin);
signal_remove("event 301", (SIGNAL_FUNC)_whois_presence_away);
signal_remove("whois away", (SIGNAL_FUNC)_whois_presence_away);
diff --git a/src/fe-efl/ui/elaro_ui_theme.h b/src/fe-efl/ui/elaro_ui_theme.h
index cd5a17e..8c79ab2 100644
--- a/src/fe-efl/ui/elaro_ui_theme.h
+++ b/src/fe-efl/ui/elaro_ui_theme.h
@@ -295,7 +295,7 @@ static void
_menu_show(void *data, Evas_Object *obj, void *info)
{
Elaro_Ui *ui = data;
- Evas_Object *box, *heading, *button;
+ Evas_Object *box, *heading, *button, *spacer;
int i;
if (ui->app_menu) { evas_object_show(ui->app_menu); return; }
ui->app_menu = elm_popup_add(ui->win);
@@ -330,11 +330,17 @@ _menu_show(void *data, Evas_Object *obj, void *info)
button = _menu_button(ui, box, "settings", _("Settings"), _menu_settings);
elm_box_pack_end(box, button);
evas_object_data_set(ui->app_menu, "settings", button);
+ spacer = elm_separator_add(box);
+ elm_separator_horizontal_set(spacer, EINA_TRUE);
+ evas_object_size_hint_weight_set(spacer, EVAS_HINT_EXPAND, 0);
+ evas_object_size_hint_align_set(spacer, EVAS_HINT_FILL, 0.5);
+ elaro_ui_fixed_height_set(spacer, 1);
+ elaro_ui_padding_set(spacer, 0, 0, 6, 6);
+ elm_box_pack_end(box, spacer);
+ evas_object_show(spacer);
button = _menu_button(ui, box, "application", _("About Elaro"), _menu_about);
elm_box_pack_end(box, button);
evas_object_data_set(ui->app_menu, "about", button);
- button = _menu_button(ui, box, "quit", _("Quit"), _close_window_cb);
- elm_box_pack_end(box, button);
elm_object_content_set(ui->app_menu, box);
evas_object_show(box);
elaro_ui_popup_close_button_add(ui, ui->app_menu, _menu_close, ui);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.