Enlightenment CVS committal

Author  : rhapsodhy
Project : e17
Module  : proto

Dir     : e17/proto/entrance_edit_gui/src/widgets


Modified Files:
        ew_messagebox.c ew_messagebox.h 


Log Message:

I imported more icons from etk, due to the need of the message boxes,
and made the messagebox to use them.

===================================================================
RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/widgets/ew_messagebox.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ew_messagebox.c     14 Aug 2006 17:08:55 -0000      1.1
+++ ew_messagebox.c     14 Aug 2006 18:38:41 -0000      1.2
@@ -2,8 +2,7 @@
 #include <Entrance_Widgets.h>
 #include <string.h>
 #include <stdlib.h>
-
-#define SIZE atoi(ICON_SIZE)
+#include "config.h"
 
 static void _ew_messagebox_cb_ok(void *, int, void *);
 static Entrance_Dialog _ew_messagebox_new(const char *type, const char *title, 
const char *message);
@@ -28,10 +27,10 @@
 
        if(icon) 
        {
-               _image = ew_image_new(SIZE,SIZE);
-               char image[100] = "status/dialog-";
+               _image = ew_image_new(ICON_SIZE,ICON_SIZE);
+               char image[100] = "icons/dialog/";
                strcat(image, icon);
-               ew_image_edje_load(_image, etk_theme_icon_theme_get(), image);
+               ew_image_edje_load(_image, PACKAGE_DATA_DIR "/icons/icons.edj", 
image);
                ew_group_add(group, _image);
        }
 
===================================================================
RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/widgets/ew_messagebox.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ew_messagebox.h     14 Aug 2006 17:08:55 -0000      1.1
+++ ew_messagebox.h     14 Aug 2006 18:38:41 -0000      1.2
@@ -1,11 +1,11 @@
 #ifndef _EW_MESSAGEBOX_H
 #define _EW_MESSAGEBOX_H
 
-#define ICON_SIZE "48"
-#define EW_MESSAGEBOX_ICON_QUESTION ("question_" ICON_SIZE)
-#define EW_MESSAGEBOX_ICON_MESSAGE     ("information_" ICON_SIZE)
-#define EW_MESSAGEBOX_ICON_WARNING     ("warning_" ICON_SIZE)
-#define EW_MESSAGEBOX_ICON_ERROR               ("error_" ICON_SIZE)
+#define ICON_SIZE 48
+#define EW_MESSAGEBOX_ICON_QUESTION "question" 
+#define EW_MESSAGEBOX_ICON_MESSAGE     "information"
+#define EW_MESSAGEBOX_ICON_WARNING     "warning"
+#define EW_MESSAGEBOX_ICON_ERROR               "error"
 
 Entrance_Dialog ew_messagebox_ok(const char *type, const char *title, const 
char *message);
 Entrance_Dialog ew_messagebox_ok_cancel(const char *, const char *, const char 
*, void (*)(void *, int, void *));



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to