From 4cf5819003282d5de4cb5ee79d60b2a9a96b69cb Mon Sep 17 00:00:00 2001 From: Jaime Thomas Date: Thu, 7 Aug 2008 22:24:53 +0000 Subject: [PATCH] Limit the size of the text --- ecdb/trunk/data/themes/default/groups/window.edc | 3 ++- ecdb/trunk/src/ecdb_gui.c | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ecdb/trunk/data/themes/default/groups/window.edc b/ecdb/trunk/data/themes/default/groups/window.edc index 07cde5e..4048c61 100644 --- a/ecdb/trunk/data/themes/default/groups/window.edc +++ b/ecdb/trunk/data/themes/default/groups/window.edc @@ -57,7 +57,7 @@ group { color: 255 255 255 155; } } - + part { name: "filelist"; type: SWALLOW; @@ -119,6 +119,7 @@ group { state: "default" 0.0; align: 0.5 0.5; color: 255 255 255 0; + max: 245 99999; rel1 { to: "filelist_overlay"; diff --git a/ecdb/trunk/src/ecdb_gui.c b/ecdb/trunk/src/ecdb_gui.c index e6c0aba..7f412ea 100644 --- a/ecdb/trunk/src/ecdb_gui.c +++ b/ecdb/trunk/src/ecdb_gui.c @@ -134,8 +134,12 @@ _cb_filelist_key_down(void *data, Evas *e __UNUSED__, char *text; t = edje_object_part_text_get(gui, "filelist_overlay_text"); + text = (t) ? (strdup(t)) : NULL; + if ((text) && (strlen(text) >= PATH_MAX)) + return; + if ((ek->string) && (*ek->string) && (!ek->string[1])) append = ek->string; else if ((ek->keyname) && (*ek->keyname) && (!ek->key[1]))