Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/edje

Dir     : e17/libs/edje/src/bin


Modified Files:
        edje_cc_out.c edje_main.c 


Log Message:


embryo support... started. :)

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/bin/edje_cc_out.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- edje_cc_out.c       6 Mar 2004 10:21:15 -0000       1.10
+++ edje_cc_out.c       26 Mar 2004 09:10:04 -0000      1.11
@@ -269,7 +269,7 @@
                         }
                       else
                         {
-                           fprintf(stderr, "%s: Error. unable to write image part 
\"%s\" as \"%s\" part entry to %s \n",
+                           fprintf(stderr, "%s: Error. unable to load image for image 
part \"%s\" as \"%s\" part entry to %s \n",
                                    progname, img->entry, buf, file_out);       
                            ABORT_WRITE(ef, file_out);
                         }
@@ -374,7 +374,37 @@
        char buf[4096];
        
        pc = l->data;
-       
+
+       /* FIXME: hack!!!! */
+         {
+            FILE *f;
+            
+            f = fopen("test.amx", "r");
+            if (f)
+              {
+                 int size;
+                 void *data;
+                 
+                 fseek(f, 0, SEEK_END);
+                 size = ftell(f);
+                 rewind(f);
+                 if (size > 0)
+                   {
+                      int bt;
+                      
+                      data = malloc(size);
+                      if (data)
+                        {
+                           fread(data, size, 1, f);
+                           snprintf(buf, sizeof(buf), "scripts/%i", pc->id);
+                           bt = eet_write(ef, buf, data, size, 1);
+                           free(data);
+                           printf("WROTE %i bytes of AMX!\n", bt);
+                        }
+                   }
+                 fclose(f);
+              }
+         }
        snprintf(buf, sizeof(buf), "collections/%i", pc->id);
        bytes = eet_data_write(ef, edd_edje_part_collection, buf, pc, 1);
        if (bytes <= 0)
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/bin/edje_main.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -3 -r1.40 -r1.41
--- edje_main.c 8 Mar 2004 02:43:47 -0000       1.40
+++ edje_main.c 26 Mar 2004 09:10:04 -0000      1.41
@@ -733,10 +733,10 @@
    de->title = o;
    
    o = edje_object_add(evas);
-   edje_object_file_set(o, file, name);
 //   edje_object_signal_callback_add(o, "do_it", "the_source", cb, NULL);
 //   edje_object_signal_callback_add(o, "mouse,*", "logo", cb, NULL);
    edje_object_signal_callback_add(o, "*", "*", cb, NULL);
+   edje_object_file_set(o, file, name);
    edje_object_part_drag_size_set(o, "dragable", 0.01, 0.5);
 //   edje_object_part_drag_value_set(o, "dragable", 0.5, 0.5);
 edje_object_part_drag_step_set(o, "dragable", 0.1, 0.1);




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to