Enlightenment CVS committal Author : titan Project : e17 Module : apps/ephoto
Dir : e17/apps/ephoto/src/bin Modified Files: ephoto_browsing.c ephoto_database.c ephoto_edit_view.c ephoto_exif.c ephoto_gui.c ephoto_list_view.c ephoto_main.c ephoto_nls.c Log Message: Cleanups, nothing special. =================================================================== RCS file: /cvs/e/e17/apps/ephoto/src/bin/ephoto_browsing.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- ephoto_browsing.c 22 Feb 2007 04:06:30 -0000 1.2 +++ ephoto_browsing.c 24 Feb 2007 22:57:09 -0000 1.3 @@ -4,7 +4,7 @@ Ecore_List *get_directories(const char *directory) { Ecore_List *ls, *files; - const char *file; + char *file; char path[PATH_MAX]; if (ecore_file_is_dir(directory)) @@ -51,7 +51,7 @@ Ecore_List *get_images(const char *directory) { Ecore_List *ls, *files; - const char *file; + char *file; char path[PATH_MAX]; if (ecore_file_is_dir(directory)) =================================================================== RCS file: /cvs/e/e17/apps/ephoto/src/bin/ephoto_database.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- ephoto_database.c 22 Feb 2007 04:06:30 -0000 1.3 +++ ephoto_database.c 24 Feb 2007 22:57:09 -0000 1.4 @@ -207,7 +207,7 @@ Ecore_List *ephoto_db_list_images(sqlite3 *db, const char *album) { char command[PATH_MAX]; - const char *id; + char *id; if(images_list) { =================================================================== RCS file: /cvs/e/e17/apps/ephoto/src/bin/ephoto_edit_view.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- ephoto_edit_view.c 22 Feb 2007 04:06:30 -0000 1.6 +++ ephoto_edit_view.c 24 Feb 2007 22:57:09 -0000 1.7 @@ -76,7 +76,7 @@ /*Go to the previous image*/ static void previous_image(Ewl_Widget *w, void *event, void *data) { - const char *image; + char *image; ecore_dlist_previous(em->images); image = ecore_dlist_current(em->images); @@ -95,7 +95,7 @@ /*Go to the next image*/ static void next_image(Ewl_Widget *w, void *event, void *data) { - const char *image; + char *image; ecore_dlist_next(em->images); image = ecore_dlist_current(em->images); =================================================================== RCS file: /cvs/e/e17/apps/ephoto/src/bin/ephoto_exif.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- ephoto_exif.c 22 Feb 2007 04:06:31 -0000 1.6 +++ ephoto_exif.c 24 Feb 2007 22:57:09 -0000 1.7 @@ -7,7 +7,7 @@ /*Get the Exif Data for an image and return it in a hash*/ Ecore_Hash *get_exif_data(const char *file) { - const char **args, *ifd_name, *title; + const char **args, *title; char value[1024]; unsigned int i, tag; Ecore_Hash *exif_info; @@ -94,7 +94,8 @@ /*Add all the exif information to the container w*/ static void add_exif_to_container(Ewl_Widget *w, void *event, void *data) { - const char *img, *key, *value; + const char *img; + char *key, *value; char text[PATH_MAX]; Ecore_Hash *exif_info; Ecore_List *keys, *values; @@ -127,8 +128,7 @@ ewl_mvc_data_set(EWL_MVC(w), values); ewl_widget_data_set(win, "list", values); ecore_hash_destroy(exif_info); - free(img); - + return; } @@ -187,8 +187,6 @@ add_button(vbox, "Close", PACKAGE_DATA_DIR "/images/dialog-close.png", close_dialog, win); - free(img); - return; } =================================================================== RCS file: /cvs/e/e17/apps/ephoto/src/bin/ephoto_gui.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- ephoto_gui.c 22 Feb 2007 04:06:31 -0000 1.3 +++ ephoto_gui.c 24 Feb 2007 22:57:09 -0000 1.4 @@ -30,8 +30,7 @@ Ewl_Widget *add_image(Ewl_Widget *c, const char *img, int thumbnail, void *cb, void *data) { Ewl_Widget *image; - const char *thumb; - int w, h, pid; + int w, h; if(!thumbnail) { =================================================================== RCS file: /cvs/e/e17/apps/ephoto/src/bin/ephoto_list_view.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- ephoto_list_view.c 22 Feb 2007 04:06:31 -0000 1.6 +++ ephoto_list_view.c 24 Feb 2007 22:57:09 -0000 1.7 @@ -135,7 +135,7 @@ /* The images that will be displayed*/ static void *list_data_fetch(void *data, unsigned int row, unsigned int column) { - char *image; + const char *image; void *val = NULL; image = ecore_list_goto_index(em->images, row); =================================================================== RCS file: /cvs/e/e17/apps/ephoto/src/bin/ephoto_main.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- ephoto_main.c 21 Feb 2007 07:06:54 -0000 1.6 +++ ephoto_main.c 24 Feb 2007 22:57:09 -0000 1.7 @@ -207,7 +207,8 @@ /*Update the Image List*/ static void populate(Ewl_Widget *w, void *event, void *data) { - char *album, *imagef; + const char *album; + char *imagef; Ewl_Widget *shadow, *thumb; if (w) @@ -387,7 +388,7 @@ /*The row that is added to the tree*/ static void album_view_assign(Ewl_Widget *w, void *data) { - char *album; + const char *album; album = data; ewl_icon_image_set(EWL_ICON(w), PACKAGE_DATA_DIR "/images/image.png", NULL); @@ -414,7 +415,7 @@ /* The albums that will be displayed*/ static void *album_data_fetch(void *data, unsigned int row, unsigned int column) { - char *album; + const char *album; void *val = NULL; album = ecore_list_goto_index(em->albums, row); =================================================================== RCS file: /cvs/e/e17/apps/ephoto/src/bin/ephoto_nls.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- ephoto_nls.c 15 Feb 2007 10:20:21 -0000 1.1 +++ ephoto_nls.c 24 Feb 2007 22:57:09 -0000 1.2 @@ -4,7 +4,9 @@ /*NLS Translator*/ char *sgettext(const char *msgid) { - char *msgval = gettext(msgid); + char *msgval; + + msgval = gettext(msgid); if (msgval == msgid) { ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs