Enlightenment CVS committal

Author  : codewarrior
Project : e17
Module  : proto

Dir     : e17/proto/exhibit/src/bin


Modified Files:
        exhibit.h exhibit_file.c 


Log Message:
- more viewable types

===================================================================
RCS file: /cvs/e/e17/proto/exhibit/src/bin/exhibit.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- exhibit.h   13 Mar 2006 09:10:31 -0000      1.14
+++ exhibit.h   10 Apr 2006 23:46:24 -0000      1.15
@@ -163,7 +163,6 @@
 #define WINDOW_TITLE "Exhibit"
 #define WINDOW_WIDTH 700
 #define WINDOW_HEIGHT 500
-#define VIEWABLES 3
 #define ZOOM_MAX 16
 #define ZOOM_MIN -16
 
===================================================================
RCS file: /cvs/e/e17/proto/exhibit/src/bin/exhibit_file.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- exhibit_file.c      14 Mar 2006 01:01:15 -0000      1.6
+++ exhibit_file.c      10 Apr 2006 23:46:24 -0000      1.7
@@ -5,19 +5,22 @@
 {
    ".jpg",
    ".png",
-   ".edj"
+   ".gif",
+   ".tiff",
+   ".edj",
+   NULL
 };
 
 int
 _ex_file_is_viewable(char *file)
 {
    char *ext;
-   int i;
+   int i = 0;
 
    ext = strrchr(file, '.');
    if(!ext) return 0;
 
-   for(i = 0; i < VIEWABLES; i++)
+   for(i = 0; viewables[i]; i++)
      {
        if(!strcasecmp(ext, viewables[i]))
          return 1;




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to