Enlightenment CVS committal Author : dj2 Project : e17 Module : apps/e_utils
Dir : e17/apps/e_utils/src/bin/entangle Modified Files: entangle_ui.c Log Message: - get the theme file from the edje object when we can =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e_utils/src/bin/entangle/entangle_ui.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- entangle_ui.c 16 May 2005 00:27:33 -0000 1.4 +++ entangle_ui.c 16 May 2005 03:39:45 -0000 1.5 @@ -649,9 +649,13 @@ const char *source)) { Evas_Object *o; + const char *file; + + o = evas_object_name_find(evas, "edje"); + edje_object_file_get(o, &file, NULL); o = edje_object_add(evas); - edje_object_file_set(o, PACKAGE_DATA_DIR"/data/entangle/default.edj", "button"); + edje_object_file_set(o, file, "button"); edje_object_part_text_set(o, "text", label); edje_object_signal_callback_add(o, "button,clicked", "*", func, NULL); evas_object_show(o); @@ -692,9 +696,13 @@ entangle_ui_button_get(Evas *evas, const char *label, const char *name) { Evas_Object *o; + const char *file; + + o = evas_object_name_find(evas, "edje"); + edje_object_file_get(o, &file, NULL); o = edje_object_add(evas); - edje_object_file_set(o, PACKAGE_DATA_DIR"/data/entangle/default.edj", "button"); + edje_object_file_set(o, file, "button"); edje_object_part_text_set(o, "text", label); edje_object_signal_callback_add(o, "button,clicked", "*", entangle_ui_cb_menu_change, (void *)name); ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs