From: <enl...@li...> - 2004-03-31 23:05:57
|
Enlightenment CVS committal Author : atmosphere Project : e17 Module : proto Dir : e17/proto/esmart/src/file_dialog Modified Files: esmart_file_dialog.c Log Message: make edje groups the file dialog uses have relatively unique names, these groups can be included in just about any app using edje w/o creating namespace conflicts =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/esmart/src/file_dialog/esmart_file_dialog.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- esmart_file_dialog.c 30 Mar 2004 19:14:51 -0000 1.2 +++ esmart_file_dialog.c 31 Mar 2004 22:53:54 -0000 1.3 @@ -97,8 +97,7 @@ { data->edje = edje_object_add (e); snprintf (buf, PATH_MAX, "%s", edje_file); - fprintf (stderr, "Trying %s\n", buf); - if (!edje_object_file_set (data->edje, buf, "Main")) + if (!edje_object_file_set (data->edje, buf, "esmart.filedialog")) { evas_object_del (data->edje); evas_object_del (result); @@ -496,7 +495,7 @@ { edje_object_part_text_set (fddata->edje, part, txt); } - fddata->func(fddata->fdata, obj, FILE_OK); + fddata->func (fddata->fdata, obj, FILE_OK); } } else if ((!strcmp (emission, "e,fd,directory,selected"))) @@ -832,7 +831,7 @@ { result = edje_object_add (evas_object_evas_get (o)); edje_object_file_get (data->edje, &edjefile, NULL); - if (edje_object_file_set (result, edjefile, "File")) + if (edje_object_file_set (result, edjefile, "esmart.filedialog.file")) { if (edje_object_part_exists (result, "file.name")) { @@ -891,7 +890,8 @@ { result = edje_object_add (evas_object_evas_get (o)); edje_object_file_get (data->edje, &edjefile, NULL); - if (edje_object_file_set (result, edjefile, "Directory")) + if (edje_object_file_set + (result, edjefile, "esmart.filedialog.directory")) { if (edje_object_part_exists (result, "directory.name")) { @@ -912,14 +912,13 @@ } else { - fprintf (stderr, "Part existance check failed"); + fprintf (stderr, "Part existance check failed\n"); evas_object_del (result); result = NULL; } } else { - fprintf (stderr, "Edje File set failed"); evas_object_del (result); result = NULL; } @@ -976,7 +975,7 @@ closedir (dir); e_container_sort (data->files, sort_cb); e_container_sort (data->directories, sort_cb); - data->func(data->fdata, o, DIR_CHANGED); + data->func (data->fdata, o, DIR_CHANGED); } else { |