Enlightenment CVS committal

Author  : xcomputerman
Project : e17
Module  : proto

Dir     : e17/proto/esmart/test


Modified Files:
        esmart_main.c 


Log Message:
Make that test actually show something. :)


===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/esmart/test/esmart_main.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- esmart_main.c       8 Nov 2003 18:17:06 -0000       1.3
+++ esmart_main.c       8 Nov 2003 19:34:59 -0000       1.4
@@ -16,6 +16,7 @@
 #include "E_Thumb.h"
 #include "container.h"
 #include "X11_Trans.h"
+#include "../src/config.h"
 
 static void
 window_del_cb(Ecore_Evas *ee)
@@ -95,6 +96,8 @@
     Ecore_Evas *ee = NULL;
     Evas_Object *o = NULL;
     Evas_Object *cont = NULL;
+    Evas_Object *image = NULL;
+    int iw, ih;
 
     ecore_init();
     ecore_app_args_set(argc, (const char**)argv);
@@ -123,6 +126,15 @@
        evas_object_layer_set(o, -6);
        evas_object_color_set(o, 255, 255, 255, 0);
        evas_object_name_set(o, "background");
+
+   image = evas_object_image_add(evas);
+   evas_object_image_file_set(image, PACKAGE_DATA_DIR"/esmart.png", NULL);
+   evas_object_image_size_get(image, &iw, &ih);
+   evas_object_resize(image, iw, ih);
+   evas_object_image_fill_set(image, 0.0, 0.0, (Evas_Coord) iw, (Evas_Coord) ih);
+   evas_object_layer_set(image, 1000);
+   evas_object_show(image);
+   
        
        evas_object_show(o);
 




-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to