E CVS: libs/ewl technikolor

2003-01-20 Thread enlightenment-cvs
Enlightenment CVS committal

Author  : technikolor
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/plugins/fx/fade_in


Modified Files:
Makefile.am 


Log Message:
These are minor fixes to correct a deficiency in Sun LD, without this addition, the 
linker
can't find the EWL lib to link against.
Tested against Linux/x86, where this addition has no effect, except being redundant.

-benr

===
RCS file: /cvsroot/enlightenment/e17/libs/ewl/plugins/fx/fade_in/Makefile.am,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- Makefile.am 16 Dec 2001 20:07:07 -  1.2
+++ Makefile.am 20 Jan 2003 10:34:11 -  1.3
@@ -8,4 +8,4 @@
 
 fade_in_la_SOURCES = fade_in.c
 fade_in_la_LDFLAGS  = -no-undefined -module -avoid-version
-fade_in_la_LIBADD  = @ebits_libs@ @ecore_libs@ @edb_libs@ @evas_libs@ @ewd_libs@ 
@etox_libs@ -lm
+fade_in_la_LIBADD  = $(top_builddir)/src/libewl.la @ebits_libs@ @ecore_libs@ 
+@edb_libs@ @evas_libs@ @ewd_libs@ @etox_libs@ -lm




---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs



E CVS: libs/ewl technikolor

2003-01-20 Thread enlightenment-cvs
Enlightenment CVS committal

Author  : technikolor
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/plugins/fx/glow


Modified Files:
Makefile.am 


Log Message:
These are minor fixes to correct a deficiency in Sun LD, without this addition, the 
linker
can't find the EWL lib to link against.
Tested against Linux/x86, where this addition has no effect, except being redundant.

-benr

===
RCS file: /cvsroot/enlightenment/e17/libs/ewl/plugins/fx/glow/Makefile.am,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- Makefile.am 16 Dec 2001 20:07:07 -  1.2
+++ Makefile.am 20 Jan 2003 10:34:11 -  1.3
@@ -8,4 +8,4 @@
 
 glow_la_SOURCES= glow.c
 glow_la_LDFLAGS  = -no-undefined -module -avoid-version
-glow_la_LIBADD = @ebits_libs@ @ecore_libs@ @edb_libs@ @evas_libs@ @ewd_libs@ 
@etox_libs@ -lm
+glow_la_LIBADD = $(top_builddir)/src/libewl.la @ebits_libs@ @ecore_libs@ @edb_libs@ 
+@evas_libs@ @ewd_libs@ @etox_libs@ -lm




---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs



E CVS: libs/ewl technikolor

2003-01-20 Thread enlightenment-cvs
Enlightenment CVS committal

Author  : technikolor
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/plugins/fx/fade_out


Modified Files:
Makefile.am 


Log Message:
These are minor fixes to correct a deficiency in Sun LD, without this addition, the 
linker
can't find the EWL lib to link against.
Tested against Linux/x86, where this addition has no effect, except being redundant.

-benr

===
RCS file: /cvsroot/enlightenment/e17/libs/ewl/plugins/fx/fade_out/Makefile.am,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- Makefile.am 16 Dec 2001 20:07:07 -  1.2
+++ Makefile.am 20 Jan 2003 10:34:11 -  1.3
@@ -8,4 +8,4 @@
 
 fade_out_la_SOURCES= fade_out.c
 fade_out_la_LDFLAGS  = -no-undefined -module -avoid-version
-fade_out_la_LIBADD = @ebits_libs@ @ecore_libs@ @edb_libs@ @evas_libs@ @ewd_libs@ 
@etox_libs@ -lm
+fade_out_la_LIBADD = $(top_builddir)/src/libewl.la @ebits_libs@ @ecore_libs@ 
+@edb_libs@ @evas_libs@ @ewd_libs@ @etox_libs@ -lm




---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs



E CVS: libs/evas raster

2003-01-20 Thread enlightenment-cvs
Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir : e17/libs/evas/src/lib/engines/common


Modified Files:
evas_convert_main.c evas_convert_rgb_16.c evas_convert_rgb_8.c 


Log Message:


symbol fixup :) (conflict with imlib2)

===
RCS file: 
/cvsroot/enlightenment/e17/libs/evas/src/lib/engines/common/evas_convert_main.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- evas_convert_main.c 14 Nov 2002 05:38:10 -  1.2
+++ evas_convert_main.c 20 Jan 2003 23:04:37 -  1.3
@@ -1,7 +1,7 @@
 #include "evas_common.h"
 
 #ifdef USE_DITHER_44
-const DATA8 _dither_44[4][4] =
+const DATA8 _evas_dither_44[4][4] =
 {
  { 0,  8,  2, 10},
  {12,  4, 14,  6},
@@ -11,7 +11,7 @@
 #endif
 
 #ifdef USE_DITHER_128128
-const DATA8 _dither_128128[128][128] =
+const DATA8 _evas_dither_128128[128][128] =
 {
  { 0, 41, 23, 5, 17, 39, 7, 15, 62, 23, 40, 51, 31, 47, 9, 32, 52, 27, 57, 25, 6, 
61, 27, 52, 37, 7, 40, 63, 18, 36, 10, 42, 25, 62, 45, 34, 20, 42, 37, 14, 35, 29, 50, 
10, 61, 2, 40, 8, 37, 12, 58, 22, 5, 41, 10, 39, 0, 60, 11, 46, 2, 55, 38, 17, 36, 59, 
13, 54, 37, 56, 8, 29, 16, 13, 63, 22, 41, 55, 7, 20, 49, 14, 23, 55, 37, 23, 19, 36, 
15, 49, 23, 63, 30, 14, 38, 27, 53, 13, 22, 41, 19, 31, 7, 19, 50, 30, 49, 16, 3, 32, 
56, 40, 29, 34, 8, 48, 19, 45, 4, 51, 12, 46, 35, 49, 16, 42, 12, 62 },
  { 30, 57, 36, 54, 47, 34, 52, 27, 43, 4, 28, 7, 17, 36, 62, 13, 44, 7, 18, 48, 
33, 21, 44, 14, 30, 47, 12, 33, 5, 55, 31, 58, 13, 30, 4, 17, 52, 10, 60, 26, 46, 0, 
39, 27, 42, 22, 47, 25, 60, 32, 9, 38, 48, 17, 59, 30, 49, 18, 34, 25, 51, 19, 5, 48, 
21, 8, 28, 46, 1, 32, 41, 19, 54, 47, 37, 18, 28, 11, 44, 30, 39, 56, 2, 33, 8, 42, 
61, 28, 58, 8, 46, 9, 41, 4, 58, 7, 21, 48, 59, 10, 52, 14, 42, 57, 12, 25, 7, 53, 42, 
24, 11, 50, 17, 59, 42, 2, 36, 60, 32, 17, 63, 29, 21, 7, 59, 32, 24, 39 },
===
RCS file: 
/cvsroot/enlightenment/e17/libs/evas/src/lib/engines/common/evas_convert_rgb_16.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- evas_convert_rgb_16.c   14 Nov 2002 05:38:10 -  1.2
+++ evas_convert_rgb_16.c   20 Jan 2003 23:04:38 -  1.3
@@ -1,10 +1,10 @@
 #include "evas_common.h"
 
 #ifdef USE_DITHER_44
-extern const DATA8 _dither_44[4][4];
+extern const DATA8 _evas_dither_44[4][4];
 #endif
 #ifdef USE_DITHER_128128
-extern const DATA8 _dither_128128[128][128];
+extern const DATA8 _evas_dither_128128[128][128];
 #endif
 
 #ifdef BUILD_CONVERT_16_RGB_565
===
RCS file: 
/cvsroot/enlightenment/e17/libs/evas/src/lib/engines/common/evas_convert_rgb_8.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- evas_convert_rgb_8.c14 Nov 2002 05:38:10 -  1.2
+++ evas_convert_rgb_8.c20 Jan 2003 23:04:38 -  1.3
@@ -1,10 +1,10 @@
 #include "evas_common.h"
 
 #ifdef USE_DITHER_44
-extern const DATA8 _dither_44[4][4];
+extern const DATA8 _evas_dither_44[4][4];
 #endif
 #ifdef USE_DITHER_128128
-extern const DATA8 _dither_128128[128][128];
+extern const DATA8 _evas_dither_128128[128][128];
 #endif
 
 #ifdef BUILD_CONVERT_8_RGB_332




---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs



E CVS: libs/evas raster

2003-01-20 Thread enlightenment-cvs
Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir : e17/libs/evas/src/lib/include


Modified Files:
evas_common.h 


Log Message:


symbol fixup :) (conflict with imlib2)

===
RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/include/evas_common.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- evas_common.h   10 Jan 2003 04:58:51 -  1.5
+++ evas_common.h   20 Jan 2003 23:04:38 -  1.6
@@ -88,7 +88,7 @@
(((x) & 0xff00 ) >> 8))
 
 #ifdef BUILD_SMALL_DITHER_MASK
-# define DM_TABLE _dither_44
+# define DM_TABLE _evas_dither_44
 # define DM_SIZE  4
 # define DM_BITS  4
 # define DM_DIV   16
@@ -96,7 +96,7 @@
 # define DM_MSK   (DM_SIZE - 1)
 # define DM_SHF(_b)   (DM_BITS - (8 - _b))
 #else
-# define DM_TABLE _dither_128128
+# define DM_TABLE _evas_dither_128128
 # define DM_SIZE  128
 # define DM_BITS  6
 # define DM_DIV   64




---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs



E CVS: e raster

2003-01-20 Thread enlightenment-cvs
Enlightenment CVS committal

Author  : raster
Project : web
Module  : e

Dir : web/e/data


Modified Files:
news.html 


Log Message:


news!

===
RCS file: /cvsroot/enlightenment/web/e/data/news.html,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -3 -r1.34 -r1.35
--- news.html   28 Dec 2002 06:37:50 -  1.34
+++ news.html   21 Jan 2003 01:07:28 -  1.35
@@ -3,6 +3,17 @@
 News
 
 @:news_title@
+Tue Jan 21 - mailto:raster@@n00-SpAmmm.rasterman.com>Raster Pants On!
+@:news_body@
+
+For all E junkies there are now PANTS ON T-shirts available
+http://www.cafeshops.com/e_pants>Here. Remember to keep your
+pants on while using Enlightenment. It can be dangerous not to. This was
+just too good to leave alone.
+
+@:news_end@
+
+@:news_title@
 Fri Dec 26 -  mailto:benr@@NO.SPAMcuddletech.com";>benr - A long, 
fruitful year
 @:news_body@
 It's been a long year for the team, but a fruitful one.  DR16.5 is still in heavy 
usage and will stay so for many years to come.  DR17 has seen the bulk of the backend 
work done.  EVAS has picked up a following and gained some press.  While at the same 
time we've seen several developers leave the project as they move onto different parts 
of their lives.




---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs



E CVS: e raster

2003-01-20 Thread enlightenment-cvs
Enlightenment CVS committal

Author  : raster
Project : web
Module  : e

Dir : web/e/pages


Modified Files:
news.html 


Log Message:


news!

===
RCS file: /cvsroot/enlightenment/web/e/pages/news.html,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -3 -r1.64 -r1.65
--- news.html   28 Dec 2002 06:37:50 -  1.64
+++ news.html   21 Jan 2003 01:07:28 -  1.65
@@ -149,6 +149,17 @@
 News
 
 
+Tue Jan 21 - mailto:[EMAIL PROTECTED]>Raster Pants On!
+
+
+For all E junkies there are now PANTS ON T-shirts available
+http://www.cafeshops.com/e_pants>Here. Remember to keep your
+pants on while using Enlightenment. It can be dangerous not to. This was
+just too good to leave alone.
+
+
+
+
 Fri Dec 26 -  mailto:[EMAIL PROTECTED]";>benr - A long, fruitful 
year
 
 It's been a long year for the team, but a fruitful one.  DR16.5 is still in heavy 
usage and will stay so for many years to come.  DR17 has seen the bulk of the backend 
work done.  EVAS has picked up a following and gained some press.  While at the same 
time we've seen several developers leave the project as they move onto different parts 
of their lives.




---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs



E CVS: libs/ecore raster

2003-01-20 Thread enlightenment-cvs
Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

Dir : e17/libs/ecore/src/lib/ecore_x


Modified Files:
  Tag: SPLIT
Ecore_X.h Makefile.am ecore_x.c ecore_x_private.h 
Added Files:
  Tag: SPLIT
ecore_x_events.c 


Log Message:


x ubsystem now has event handlers to translate x events to ecore events...
empty right now.. but it works. this system later will need to be able to
generate synthetic events form client messages and property notify's

===
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/Attic/Ecore_X.h,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -3 -r1.1.2.2 -r1.1.2.3
--- Ecore_X.h   16 Jan 2003 11:39:41 -  1.1.2.2
+++ Ecore_X.h   21 Jan 2003 01:22:45 -  1.1.2.3
@@ -18,7 +18,41 @@

 #endif
 
-int ecore_x_init(const char *name);   
+extern int ECORE_EVENT_X_KEY_DOWN;
+extern int ECORE_EVENT_X_KEY_UP;
+extern int ECORE_EVENT_X_MOUSE_BUTTON_DOWN;
+extern int ECORE_EVENT_X_MOUSE_BUTTON_UP;
+extern int ECORE_EVENT_X_MOUSE_MOVE;
+extern int ECORE_EVENT_X_MOUSE_IN;
+extern int ECORE_EVENT_X_MOUSE_OUT;
+extern int ECORE_EVENT_X_WINDOW_FOCUS_IN;
+extern int ECORE_EVENT_X_WINDOW_FOCUS_OUT;
+extern int ECORE_EVENT_X_WINDOW_DAMAGE;
+extern int ECORE_EVENT_X_WINDOW_VISIBILITY_CHANGE;
+extern int ECORE_EVENT_X_WINDOW_CREATE;
+extern int ECORE_EVENT_X_WINDOW_DESTROY;
+extern int ECORE_EVENT_X_WINDOW_HIDE;
+extern int ECORE_EVENT_X_WINDOW_SHOW;
+extern int ECORE_EVENT_X_WINDOW_SHOW_REQUEST;
+extern int ECORE_EVENT_X_WINDOW_REPARENT;
+extern int ECORE_EVENT_X_WINDOW_CONFIGURE;
+extern int ECORE_EVENT_X_WINDOW_CONFIGURE_REQUEST;
+extern int ECORE_EVENT_X_WINDOW_STACK;
+extern int ECORE_EVENT_X_WINDOW_STACK_REQUEST;
+extern int ECORE_EVENT_X_WINDOW_PROPERTY;
+extern int ECORE_EVENT_X_WINDOW_COLORMAP;
+extern int ECORE_EVENT_X_CLIENT_MESSAGE;
+extern int ECORE_EVENT_X_SELECTION_NOTIFY;
+extern int ECORE_EVENT_X_SELECTION_CLEAR;
+extern int ECORE_EVENT_X_SELECTION_REQUEST;
+extern int ECORE_EVENT_X_WINDOW_SHAPE;
+   
+int  ecore_x_init(const char *name);   
+Display *ecore_x_display_get(void);
+   
+void ecore_x_error_handler_set(void (*func) (void *data), const void *data);
+int  ecore_x_error_request_get(void);
+int  ecore_x_error_code_get(void);

 #ifdef __cplusplus
 }
===
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/Attic/Makefile.am,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -3 -r1.1.2.1 -r1.1.2.2
--- Makefile.am 16 Jan 2003 11:26:42 -  1.1.2.1
+++ Makefile.am 21 Jan 2003 01:22:45 -  1.1.2.2
@@ -8,6 +8,8 @@
 
 libecore_x_la_SOURCES = \
 ecore_x.c \
+ecore_x_error.c \
+ecore_x_events.c \
 ecore_x_private.h
 
 libecore_x_la_LIBADD = @x_ldflags@ @x_libs@
===
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/Attic/ecore_x.c,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -3 -r1.1.2.2 -r1.1.2.3
--- ecore_x.c   16 Jan 2003 11:39:41 -  1.1.2.2
+++ ecore_x.c   21 Jan 2003 01:22:45 -  1.1.2.3
@@ -5,7 +5,41 @@
 static int _ecore_x_fd_handler(Ecore_Fd_Handler *fd_handler, void *data);
 static int _ecore_x_fd_handler_buf(Ecore_Fd_Handler *fd_handler, void *data);
 
-static Display *disp = NULL;
+static Ecore_Fd_Handler *_ecore_x_fd_handler_handle = NULL;
+static int _ecore_x_event_shape_id = 0;
+static int _ecore_x_event_handlers_num = 0;
+static void (**_ecore_x_event_handlers) (XEvent * event) = NULL;
+
+Display *_ecore_x_disp = NULL;
+
+int ECORE_EVENT_X_KEY_DOWN = 0;
+int ECORE_EVENT_X_KEY_UP = 0;
+int ECORE_EVENT_X_MOUSE_BUTTON_DOWN = 0;
+int ECORE_EVENT_X_MOUSE_BUTTON_UP = 0;
+int ECORE_EVENT_X_MOUSE_MOVE = 0;
+int ECORE_EVENT_X_MOUSE_IN = 0;
+int ECORE_EVENT_X_MOUSE_OUT = 0;
+int ECORE_EVENT_X_WINDOW_FOCUS_IN = 0;
+int ECORE_EVENT_X_WINDOW_FOCUS_OUT = 0;
+int ECORE_EVENT_X_WINDOW_DAMAGE = 0;
+int ECORE_EVENT_X_WINDOW_VISIBILITY_CHANGE = 0;
+int ECORE_EVENT_X_WINDOW_CREATE = 0;
+int ECORE_EVENT_X_WINDOW_DESTROY = 0;
+int ECORE_EVENT_X_WINDOW_HIDE = 0;
+int ECORE_EVENT_X_WINDOW_SHOW = 0;
+int ECORE_EVENT_X_WINDOW_SHOW_REQUEST = 0;
+int ECORE_EVENT_X_WINDOW_REPARENT = 0;
+int ECORE_EVENT_X_WINDOW_CONFIGURE = 0;
+int ECORE_EVENT_X_WINDOW_CONFIGURE_REQUEST = 0;
+int ECORE_EVENT_X_WINDOW_STACK = 0;
+int ECORE_EVENT_X_WINDOW_STACK_REQUEST = 0;
+int ECORE_EVENT_X_WINDOW_PROPERTY = 0;
+int ECORE_EVENT_X_WINDOW_COLORMAP = 0;
+int ECORE_EVENT_X_CLIENT_MESSAGE = 0;
+int ECORE_EVENT_X_SELECTION_NOTIFY = 0;
+int ECORE_EVENT_X_SELECTION_CLEAR = 0;
+int ECORE_EVENT_X_SELECTION_REQUEST = 0;
+int ECORE_EVENT_X_WINDOW_SHAPE = 0;
 
 /**
  * Init the X display connection
@@ -17,17 +51,132 @@
 int
 ecore_x_init(const char *name)
 {
-   if (disp) return 1;
-   disp = XOpenDisplay((char *)name);
-   if (!disp) ret

E CVS: libs/ecore raster

2003-01-20 Thread enlightenment-cvs
Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

Dir : e17/libs/ecore/src/bin


Modified Files:
  Tag: SPLIT
ecore_test.c 


Log Message:


x ubsystem now has event handlers to translate x events to ecore events...
empty right now.. but it works. this system later will need to be able to
generate synthetic events form client messages and property notify's

===
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/bin/Attic/ecore_test.c,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -3 -r1.1.2.3 -r1.1.2.4
--- ecore_test.c16 Jan 2003 12:04:35 -  1.1.2.3
+++ ecore_test.c21 Jan 2003 01:22:45 -  1.1.2.4
@@ -1,8 +1,6 @@
 #include "Ecore.h"
 #include "Ecore_Job.h"
-
-#include 
-#include 
+#include "Ecore_X.h"
 
 #include 
 #include 
@@ -52,80 +50,44 @@
return 1;
 }
 
-int
-x_handler(Ecore_Fd_Handler *fd_handler, void *data)
-{
-   Display *display;
-
-   printf("Begin x_handler\n");
-   display = data;
-   while (XPending(display))
- {
-   XEvent event;
-   
-   XNextEvent(display, &event);
-   printf("X11 event %i\n", event.type);
-   /* here we should be putting an event on the event list */
- }
-   printf("End x_handler\n");
-   return 1;
-}
-
-int
-x_handler_buf(Ecore_Fd_Handler *fd_handler, void *data)
-{
-   Display *display;
-
-   display = data;
-   return XPending(display);
-}
-
 void
 x_init(void)
 {
Display *display;
XClassHint *xch;
+   XSetWindowAttributes att;
+   Window win;

-   display = XOpenDisplay(NULL);
-   if (!display) return;
-   ecore_main_fd_handler_add(ConnectionNumber(display),
-ECORE_FD_READ,
-x_handler, display,
-x_handler_buf, display);
- {
-   XSetWindowAttributes att;
-   Window win;
-   
-   att.background_pixmap = None;
-   att.colormap = DefaultColormap(display, DefaultScreen(display));
-   att.border_pixel = 0;
-   att.event_mask =
- ButtonPressMask |
- ButtonReleaseMask |
- EnterWindowMask |
- LeaveWindowMask |
- PointerMotionMask |
- ExposureMask |
- StructureNotifyMask |
- KeyPressMask |
- KeyReleaseMask;
-  win = XCreateWindow(display,
-  RootWindow(display, DefaultScreen(display)),
- 0, 0, 160, 160, 0,
-  DefaultDepth(display, DefaultScreen(display)),
-  InputOutput,
-  DefaultVisual(display, DefaultScreen(display)),
-  CWColormap | CWBorderPixel | CWEventMask | CWBackPixmap,
-  &att);
-   XStoreName(display, win, "Ecore Test Program");
-   xch = XAllocClassHint();
-   xch->res_name = "Main";
-   xch->res_class = "Ecore_Demo";
-   XSetClassHint(display, win, xch);
-   XFree(xch); 
-   XMapWindow(display, win);
-   XSync(display, False);
- }
+   display = ecore_x_display_get();
+   att.background_pixmap = None;
+   att.colormap = DefaultColormap(display, DefaultScreen(display));
+   att.border_pixel = 0;
+   att.event_mask =
+ ButtonPressMask |
+ ButtonReleaseMask |
+ EnterWindowMask |
+ LeaveWindowMask |
+ PointerMotionMask |
+ ExposureMask |
+ StructureNotifyMask |
+ KeyPressMask |
+ KeyReleaseMask;
+   win = XCreateWindow(display,
+  RootWindow(display, DefaultScreen(display)),
+  0, 0, 160, 160, 0,
+  DefaultDepth(display, DefaultScreen(display)),
+  InputOutput,
+  DefaultVisual(display, DefaultScreen(display)),
+  CWColormap | CWBorderPixel | CWEventMask | CWBackPixmap,
+  &att);
+   XStoreName(display, win, "Ecore Test Program");
+   xch = XAllocClassHint();
+   xch->res_name = "Main";
+   xch->res_class = "Ecore_Demo";
+   XSetClassHint(display, win, xch);
+   XFree(xch); 
+   XMapWindow(display, win);
+   XSync(display, False);
 }
 
 int
@@ -136,6 +98,8 @@
ecore_init();
ecore_app_args_set(argc, argv);
 
+   if (!ecore_x_init(NULL)) return -1;
+   
x_init();

ecore_idle_enterer_add(idle_enterer, NULL);




---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs



E CVS: elogin atmosphere

2003-01-20 Thread enlightenment-cvs
Enlightenment CVS committal

Author  : atmosphere
Project : misc
Module  : elogin

Dir : misc/elogin/src/client


Modified Files:
events.c 


Log Message:
Fixed key input callback so period can be accepted. 


===
RCS file: /cvsroot/enlightenment/misc/elogin/src/client/events.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- events.c13 Jan 2003 23:10:12 -  1.8
+++ events.c21 Jan 2003 05:09:36 -  1.9
@@ -114,7 +114,6 @@
if (e->key)
{
   int length = 0;
-
   length = strlen(e->key);
   if (e->mods & ECORE_EVENT_KEY_MODIFIER_CTRL)
   {
@@ -150,6 +149,10 @@
  {
 typebuffer.buf[typebuffer.buf_index++] = ' ';
  }
+else if(!(strcmp(e->key, "period")))
+{
+typebuffer.buf[typebuffer.buf_index++] = '.';
+}
   }
   else
   {




---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs



E CVS: elogin atmosphere

2003-01-20 Thread enlightenment-cvs
Enlightenment CVS committal

Author  : atmosphere
Project : misc
Module  : elogin

Dir : misc/elogin/src/daemon


Modified Files:
spawner.c 


Log Message:

Another daemon fix from Ibukun Olumuyiwa <[EMAIL PROTECTED]> 


===
RCS file: /cvsroot/enlightenment/misc/elogin/src/daemon/spawner.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- spawner.c   18 Jan 2003 04:45:22 -  1.12
+++ spawner.c   21 Jan 2003 05:20:17 -  1.13
@@ -199,7 +199,6 @@
 elogin_exit(int signum)
 {
int status = 0;
-   int x_status = 0;
pid_t pid;
 
if (signum == SIGTERM)
@@ -217,21 +216,11 @@
  printf("INFO: Elogin process died.\n");
  if (d->display)
  {
-/* Allow things to settle down (in case X died as well) */
+/* Die Hard Like Bruce Willis */
+kill(d->pid.x, SIGTERM);
 sleep(1);
+d->display = NULL;
 
-/* check to see if X is still alive before restarting elogin */
-if (!waitpid(d->pid.x, &x_status, WNOHANG))
-{
-   kill(d->pid.x, SIGTERM);
-   sleep(1);
-}
-else
-{
-   /* Die Hard Like Bruce Willis */
-   kill(d->pid.x, SIGTERM);
-   d->display = NULL;
-}
 spawn_x();
 spawn_elogin();
  }




---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs