summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-10 08:37:18 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-10 08:38:27 +0100
commite11eb90231e75e5c9b87c676b4a857a5c164b5eb (patch)
tree3f96b80de3452f5b1a1556d50ed9224875b2192e /src/modules
parent265c3068740529990a2ab14477db20e773b149d4 (diff)
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.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/tiling/e_mod_tiling.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/modules/tiling/e_mod_tiling.c b/src/modules/tiling/e_mod_tiling.c
index 14aadce..c7813d5 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)
869 Eina_Strbuf *buf; 869 Eina_Strbuf *buf;
870 870
871 buf = eina_strbuf_new(); 871 buf = eina_strbuf_new();
872 if (ec->netwm.name) 872 eina_strbuf_append_printf(buf, _("Window %s cannot be tiled\n"),
873 eina_strbuf_append_printf(buf, "Window %s cannot be tiled\n", ec->netwm.name); 873 e_client_util_name_get(ec));
874 else
875 eina_strbuf_append(buf, "A Window cannot be tiled\n");
876 874
877 memset(&n, 0, sizeof(n)); 875 memset(&n, 0, sizeof(n));
878 n.app_name = _("Tiling"); 876 n.app_name = _("Tiling");
879 n.icon.icon = "dialog-error"; 877 n.icon.icon = "dialog-error";
880 n.summary = _("Window cannot be tiled"); 878 n.summary = _("Window cannot be tiled");
881 n.body = eina_strbuf_string_get(buf); 879 n.body = eina_strbuf_string_get(buf);
882 n.timeout = 2000; 880 n.timeout = 8000;
883 e_notification_client_send(&n, NULL, NULL); 881 e_notification_client_send(&n, NULL, NULL);
884 toggle_floating(ec); 882 toggle_floating(ec);
885 883