Limit the size of the text

This commit is contained in:
Jaime Thomas 2008-08-07 22:24:53 +00:00
parent 40f3c3c9e7
commit 897ad497dd
2 changed files with 6 additions and 1 deletions

View File

@ -57,7 +57,7 @@ group {
color: 255 255 255 155; color: 255 255 255 155;
} }
} }
part { part {
name: "filelist"; name: "filelist";
type: SWALLOW; type: SWALLOW;
@ -119,6 +119,7 @@ group {
state: "default" 0.0; state: "default" 0.0;
align: 0.5 0.5; align: 0.5 0.5;
color: 255 255 255 0; color: 255 255 255 0;
max: 245 99999;
rel1 { rel1 {
to: "filelist_overlay"; to: "filelist_overlay";

View File

@ -134,8 +134,12 @@ _cb_filelist_key_down(void *data, Evas *e __UNUSED__,
char *text; char *text;
t = edje_object_part_text_get(gui, "filelist_overlay_text"); t = edje_object_part_text_get(gui, "filelist_overlay_text");
text = (t) ? (strdup(t)) : NULL; text = (t) ? (strdup(t)) : NULL;
if ((text) && (strlen(text) >= PATH_MAX))
return;
if ((ek->string) && (*ek->string) && (!ek->string[1])) if ((ek->string) && (*ek->string) && (!ek->string[1]))
append = ek->string; append = ek->string;
else if ((ek->keyname) && (*ek->keyname) && (!ek->key[1])) else if ((ek->keyname) && (*ek->keyname) && (!ek->key[1]))