From e11eb90231e75e5c9b87c676b4a857a5c164b5eb Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sat, 10 Aug 2019 08:37:18 +0100 Subject: [PATCH] tiling - on not fit error use name get util and translated strings if we use the util func we do get a title... and als use translation too for this notification. Also increase timeout so people can read it and notice it. --- src/modules/tiling/e_mod_tiling.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/modules/tiling/e_mod_tiling.c b/src/modules/tiling/e_mod_tiling.c index 14aadced8..c7813d5a0 100644 --- a/src/modules/tiling/e_mod_tiling.c +++ b/src/modules/tiling/e_mod_tiling.c @@ -869,17 +869,15 @@ tiling_e_client_does_not_fit(E_Client *ec) Eina_Strbuf *buf; buf = eina_strbuf_new(); - if (ec->netwm.name) - eina_strbuf_append_printf(buf, "Window %s cannot be tiled\n", ec->netwm.name); - else - eina_strbuf_append(buf, "A Window cannot be tiled\n"); + eina_strbuf_append_printf(buf, _("Window %s cannot be tiled\n"), + e_client_util_name_get(ec)); memset(&n, 0, sizeof(n)); n.app_name = _("Tiling"); n.icon.icon = "dialog-error"; n.summary = _("Window cannot be tiled"); n.body = eina_strbuf_string_get(buf); - n.timeout = 2000; + n.timeout = 8000; e_notification_client_send(&n, NULL, NULL); toggle_floating(ec);