Enlightenment CVS committal

Author  : codewarrior
Project : e17
Module  : apps/e_utils

Dir     : e17/apps/e_utils/src/bin/e17setroot


Modified Files:
        e17setroot.c 


Log Message:
synced out -s -c -f (not supported yet) -t options with Esetroot's options.

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/apps/e_utils/src/bin/e17setroot/e17setroot.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- e17setroot.c        25 Jan 2005 23:24:26 -0000      1.15
+++ e17setroot.c        28 Jan 2005 23:50:56 -0000      1.16
@@ -21,6 +21,7 @@
 static int e_bg_type = 0;
 static int e_bg_no_load = 0;
 static char *e_bg_img_file = NULL;
+static char *esetroot_opt = NULL;
 
 enum E_Bg_Types
 {
@@ -73,23 +74,27 @@
        case E_BG_TILE:    
        case 't':           
         e_bg_type = E_BG_TILE;
+        esetroot_opt = strdup(" ");
         break;
 
         /* scale */
        case E_BG_SCALE:
        case 's':
         e_bg_type = E_BG_SCALE;
+        esetroot_opt = strdup(" -s ");
         break;
         
         /* center */
        case E_BG_CENTER:
        case 'c':
         e_bg_type = E_BG_CENTER;
+        esetroot_opt = strdup(" -c ");  
         break;
         
         /* fit */
        case E_BG_FIT:
        case 'f':
+        esetroot_opt = strdup(" -f ");
         break;
 
         /* get current bg */
@@ -288,8 +293,9 @@
       return;
 
    /* If we're using pseudo-trans for eterm, then this will help */
-   esetroot = malloc(strlen("Esetroot ") + strlen(filename) + 1);
+   esetroot = malloc(strlen("Esetroot ") + strlen(esetroot_opt) + 
strlen(filename) + 1);
    strcpy(esetroot, "Esetroot ");
+   strcat(esetroot, esetroot_opt);
    strcat(esetroot, filename);
    system(esetroot);
    free(esetroot);




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to