Enlightenment CVS committal Author : essiene Project : e17 Module : proto
Dir : e17/proto/entrance_edit_gui/src/gui Modified Files: Egui.h background.c egui_graphics_selector.c theme.c Log Message: Add use_full_path field to the Egui_Graphics_Selector struct and use it in egui_graphics_selector.c's apply function, this tell us to either set a full file path, or just the basename. This fixes a bug stopping backgrounds selection from showing up after being selected. Actually, for backgrounds, we need the FULL path, since there is no special entrance backgrounds path _YET_ (unlike for themes) =================================================================== RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/gui/Egui.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- Egui.h 13 Aug 2006 22:41:44 -0000 1.3 +++ Egui.h 13 Aug 2006 23:11:47 -0000 1.4 @@ -8,6 +8,8 @@ char *dialog_title; char *list_title; char *entrance_edit_key; + + int use_full_path; } Egui_Graphics_Selector; =================================================================== RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/gui/background.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- background.c 13 Aug 2006 22:41:44 -0000 1.6 +++ background.c 13 Aug 2006 23:11:47 -0000 1.7 @@ -15,7 +15,8 @@ "desktop/background", "Entrance Configuration - Background", "Backgrounds", - ENTRANCE_EDIT_KEY_CLIENT_BACKGROUND_STR + ENTRANCE_EDIT_KEY_CLIENT_BACKGROUND_STR, + 1 }; egui_gs_dialog_show(background_egs); =================================================================== RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/gui/egui_graphics_selector.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- egui_graphics_selector.c 13 Aug 2006 22:41:44 -0000 1.1 +++ egui_graphics_selector.c 13 Aug 2006 23:11:47 -0000 1.2 @@ -101,10 +101,18 @@ return; } - entrance_edit_string_set(egs.entrance_edit_key, graphic); + if(egs.use_full_path) + { + char *full_path = _gs_get_path(graphic); + entrance_edit_string_set(egs.entrance_edit_key, full_path); + free(full_path); + } + else + entrance_edit_string_set(egs.entrance_edit_key, graphic); + if(!entrance_edit_save()) { - printf("Error setting %s - %s. Please check your permissions\n", egs.name, graphic); + printf("Error setting %s. Please check your permissions\n", egs.name); } } =================================================================== RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/gui/theme.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- theme.c 13 Aug 2006 22:41:44 -0000 1.7 +++ theme.c 13 Aug 2006 23:11:47 -0000 1.8 @@ -15,7 +15,8 @@ "Preview", "Entrance Configuration - Themes", "Themes", - ENTRANCE_EDIT_KEY_CLIENT_THEME_STR + ENTRANCE_EDIT_KEY_CLIENT_THEME_STR, + 0 }; egui_gs_dialog_show(theme_egs); ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs