From: <enl...@li...> - 2004-05-31 16:03:39
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_x Modified Files: ecore_x_window_prop.c Log Message: fixed a memleak in ecore_x_window_prop_state_isset() =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_window_prop.c,v retrieving revision 1.42 retrieving revision 1.43 diff -u -3 -r1.42 -r1.43 --- ecore_x_window_prop.c 8 May 2004 04:44:04 -0000 1.42 +++ ecore_x_window_prop.c 31 May 2004 16:03:28 -0000 1.43 @@ -1091,18 +1091,15 @@ int ecore_x_window_prop_state_isset(Ecore_X_Window win, Ecore_X_Window_State s) { - int num, i; + int num, i, ret = 0; unsigned char *data; Atom *states; Ecore_X_Atom state; - + state = _ecore_x_window_prop_state_atom_get(s); if (!ecore_x_window_prop_property_get(win, _ecore_x_atom_net_wm_state, XA_ATOM, 32, &data, &num)) - { - XFree(data); - return 0; - } + return ret; states = (Atom *) data; @@ -1110,12 +1107,13 @@ { if(states[i] == state) { - XFree(data); - return 1; + ret = 1; + break; } } - return 0; + XFree(data); + return ret; } /** |
From: <enl...@li...> - 2004-05-31 16:08:04
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_config Modified Files: edb.c Log Message: this is a bit nicer :p =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_config/edb.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -3 -r1.19 -r1.20 --- edb.c 31 May 2004 15:54:04 -0000 1.19 +++ edb.c 31 May 2004 16:07:57 -0000 1.20 @@ -201,6 +201,9 @@ next = next->next; continue; } + + tmp = NULL; + switch (next->type) { case PT_INT: @@ -210,28 +213,24 @@ e_db_float_set(db, next->key, ecore_config_float_get(next->key)); break; case PT_RGB: - if ((tmp = ecore_config_rgbstr_get(next->key))) { - e_db_str_set(db, next->key, tmp); - free(tmp); - } + tmp = ecore_config_rgbstr_get(next->key); break; case PT_STR: - if ((tmp = ecore_config_string_get(next->key))) { - e_db_str_set(db, next->key, tmp); - free(tmp); - } + tmp = ecore_config_string_get(next->key); break; case PT_THM: - if ((tmp = ecore_config_theme_get(next->key))) { - e_db_str_set(db, next->key, tmp); - free(tmp); - } + tmp = ecore_config_theme_get(next->key); break; case PT_NIL: /* currently we do nothing for undefined ojects */ break; } + if (tmp) { + e_db_str_set(db, next->key, tmp); + free(tmp); + } + next = next->next; } |
From: <enl...@li...> - 2004-07-07 19:27:33
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_evas Modified Files: ecore_evas.c Log Message: properly initialize evas =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_evas/ecore_evas.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- ecore_evas.c 8 May 2004 04:44:04 -0000 1.12 +++ ecore_evas.c 7 Jul 2004 19:27:26 -0000 1.13 @@ -15,14 +15,14 @@ int ecore_evas_init(void) { - _ecore_evas_init_count++; - if (_ecore_evas_init_count > 1) return _ecore_evas_init_count; - return _ecore_evas_init_count; + evas_init (); + + return ++_ecore_evas_init_count; } /** * Shut down the Evas system. - * @return 0 if ecore evas is fully shut down, or 1 if it still needs to be shut down + * @return 0 if ecore evas is fully shut down, or > 0 if it still needs to be shut down * * This closes the Evas system down. */ |
From: <enl...@li...> - 2004-07-08 14:42:20
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_evas Modified Files: ecore_evas.c Log Message: oops =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_evas/ecore_evas.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -3 -r1.13 -r1.14 --- ecore_evas.c 7 Jul 2004 19:27:26 -0000 1.13 +++ ecore_evas.c 8 Jul 2004 14:42:12 -0000 1.14 @@ -15,7 +15,8 @@ int ecore_evas_init(void) { - evas_init (); + if (_ecore_evas_init_count == 0) + evas_init (); return ++_ecore_evas_init_count; } |
From: <enl...@li...> - 2004-07-11 13:55:38
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/ecore Dir : e17/libs/ecore Modified Files: ecore.pc.in Log Message: ecore isn't evas ;D =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/ecore.pc.in,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- ecore.pc.in 11 Jul 2004 08:08:02 -0000 1.3 +++ ecore.pc.in 11 Jul 2004 13:55:30 -0000 1.4 @@ -3,8 +3,8 @@ libdir=@libdir@ includedir=@includedir@ -Name: evas -Description: Evas canvas display library +Name: ecore +Description: Ecore event abstraction library (FIXME) Requires: @requirements@ Version: @VERSION@ Libs: -L${libdir} -lecore @ecore_txt_libs@ @ecore_x_libs@ @ecore_job_libs@ @ecore_fb_libs@ @ecore_evas_libs@ @ecore_con_libs@ @ecore_ipc_libs@ @ecore_config_libs@ |
From: <enl...@li...> - 2004-07-12 17:53:44
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_evas Modified Files: ecore_evas_x.c Log Message: i think this is the right way to fix the subwindow issue. e->event_win is the window the event originally occured in, while the value of e->win depends on whether it's a subwindow crossing or not. spank me if i'm wrong. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_evas/ecore_evas_x.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -3 -r1.19 -r1.20 --- ecore_evas_x.c 12 Jul 2004 06:53:58 -0000 1.19 +++ ecore_evas_x.c 12 Jul 2004 17:53:37 -0000 1.20 @@ -210,7 +210,7 @@ e = event; ee = _ecore_evas_x_match(e->win); if (!ee) return 1; /* pass on event */ - if (e->win == ee->engine.x.win_container) return 0; + if (e->event_win == ee->engine.x.win_container) return 0; if (ee->func.fn_mouse_in) ee->func.fn_mouse_in(ee); _ecore_evas_modifier_locks_update(ee, e->modifiers); evas_event_feed_mouse_in(ee->evas); @@ -227,7 +227,7 @@ e = event; ee = _ecore_evas_x_match(e->win); if (!ee) return 1; /* pass on event */ - if (e->win == ee->engine.x.win_container) return 0; + if (e->event_win == ee->engine.x.win_container) return 0; _ecore_evas_modifier_locks_update(ee, e->modifiers); _ecore_evas_mouse_move_process(ee, e->x, e->y); evas_event_feed_mouse_out(ee->evas); |
From: <enl...@li...> - 2004-08-22 21:03:14
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_x Modified Files: ecore_x_window_prop.c Log Message: properly initialize data =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_window_prop.c,v retrieving revision 1.43 retrieving revision 1.44 diff -u -3 -r1.43 -r1.44 --- ecore_x_window_prop.c 31 May 2004 16:03:28 -0000 1.43 +++ ecore_x_window_prop.c 22 Aug 2004 21:03:02 -0000 1.44 @@ -731,7 +731,7 @@ void ecore_x_window_prop_borderless_set(Ecore_X_Window win, int borderless) { - unsigned int data[5] = {0}; + unsigned int data[5] = {0, 0, 0, 0, 0}; data[0] = 2; /* just set the decorations hint! */ data[2] = !borderless; |
From: <enl...@li...> - 2004-08-22 21:45:05
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_x Modified Files: ecore_x.c Log Message: haha, this was totally stupid. let the compiler handle the initialization =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x.c,v retrieving revision 1.35 retrieving revision 1.36 diff -u -3 -r1.35 -r1.36 --- ecore_x.c 15 Jul 2004 13:43:15 -0000 1.35 +++ ecore_x.c 22 Aug 2004 21:44:52 -0000 1.36 @@ -140,7 +140,7 @@ Atom _ecore_x_atom_utf8_string = 0; Atom _ecore_x_atom_compound_text = 0; -Atom _ecore_x_atoms_wm_protocols[ECORE_X_WM_PROTOCOL_NUM] = {0}; +Atom _ecore_x_atoms_wm_protocols[ECORE_X_WM_PROTOCOL_NUM]; /* Xdnd atoms that need to be exposed to the application interface */ Ecore_X_Atom ECORE_X_DND_ACTION_COPY = 0; |
From: <enl...@li...> - 2004-08-22 21:57:20
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_x Modified Files: ecore_x_window_prop.c Ecore_X.h Log Message: added ecore_x_window_prop_protocol_isset() =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_window_prop.c,v retrieving revision 1.44 retrieving revision 1.45 diff -u -3 -r1.44 -r1.45 --- ecore_x_window_prop.c 22 Aug 2004 21:03:02 -0000 1.44 +++ ecore_x_window_prop.c 22 Aug 2004 21:57:07 -0000 1.45 @@ -527,6 +527,36 @@ } /** + * Determines whether a protocol is set for a window. + * @param win The Window + * @param protocol The protocol to query + * @return 1 if the protocol is set, else 0. + */ +int +ecore_x_window_prop_protocol_isset(Ecore_X_Window win, + Ecore_X_WM_Protocol protocol) +{ + Atom proto, *protos = NULL; + int i, ret = 0, protos_count = 0; + + proto = _ecore_x_atoms_wm_protocols[protocol]; + + if (!XGetWMProtocols(_ecore_x_disp, win, &protos, &protos_count)) + return ret; + + for (i = 0; i < protos_count; i++) + if (protos[i] == proto) + { + ret = 1; + break; + } + + XFree(protos); + + return ret; +} + +/** * To be documented. * * FIXME: To be fixed. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/Ecore_X.h,v retrieving revision 1.48 retrieving revision 1.49 diff -u -3 -r1.48 -r1.49 --- Ecore_X.h 5 Aug 2004 14:11:20 -0000 1.48 +++ Ecore_X.h 22 Aug 2004 21:57:07 -0000 1.49 @@ -781,6 +781,7 @@ void ecore_x_window_prop_name_class_set(Ecore_X_Window win, const char *n, const char *c); void ecore_x_window_prop_name_class_get(Ecore_X_Window win, char **n, char **c); void ecore_x_window_prop_protocol_set(Ecore_X_Window win, Ecore_X_WM_Protocol protocol, int on); +int ecore_x_window_prop_protocol_isset(Ecore_X_Window win, Ecore_X_WM_Protocol protocol); void ecore_x_window_prop_sticky_set(Ecore_X_Window win, int on); int ecore_x_window_prop_input_mode_set(Ecore_X_Window win, Ecore_X_Window_Input_Mode mode); void ecore_x_window_prop_min_size_set(Ecore_X_Window win, int w, int h); |
From: <enl...@li...> - 2004-08-22 22:04:22
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_x Modified Files: ecore_x_window_prop.c Log Message: check for invalid protocol values before accessing the array =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_window_prop.c,v retrieving revision 1.45 retrieving revision 1.46 diff -u -3 -r1.45 -r1.46 --- ecore_x_window_prop.c 22 Aug 2004 21:57:07 -0000 1.45 +++ ecore_x_window_prop.c 22 Aug 2004 22:04:12 -0000 1.46 @@ -472,7 +472,11 @@ int protos_count = 0; int already_set = 0; int i; - + + /* check for invalid values */ + if (protocol < 0 || protocol >= ECORE_X_WM_PROTOCOL_NUM) + return; + proto = _ecore_x_atoms_wm_protocols[protocol]; if (!XGetWMProtocols(_ecore_x_disp, win, &protos, &protos_count)) @@ -539,6 +543,10 @@ Atom proto, *protos = NULL; int i, ret = 0, protos_count = 0; + /* check for invalid values */ + if (protocol < 0 || protocol >= ECORE_X_WM_PROTOCOL_NUM) + return 0; + proto = _ecore_x_atoms_wm_protocols[protocol]; if (!XGetWMProtocols(_ecore_x_disp, win, &protos, &protos_count)) |
From: <enl...@li...> - 2004-08-23 08:56:01
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_x Modified Files: Ecore_X.h Log Message: that function is actually called _width_get, not _size_get =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/Ecore_X.h,v retrieving revision 1.49 retrieving revision 1.50 diff -u -3 -r1.49 -r1.50 --- Ecore_X.h 22 Aug 2004 21:57:07 -0000 1.49 +++ Ecore_X.h 23 Aug 2004 08:55:42 -0000 1.50 @@ -751,7 +751,7 @@ void ecore_x_window_reparent(Ecore_X_Window win, Ecore_X_Window new_parent, int x, int y); void ecore_x_window_size_get(Ecore_X_Window win, int *w, int *h); void ecore_x_window_geometry_get(Ecore_X_Window win, int *x, int *y, int *w, int *h); -int ecore_x_window_border_size_get(Ecore_X_Window win); +int ecore_x_window_border_width_get(Ecore_X_Window win); int ecore_x_window_depth_get(Ecore_X_Window win); void ecore_x_window_cursor_show(Ecore_X_Window win, int show); void ecore_x_window_defaults_set(Ecore_X_Window win); |
From: <enl...@li...> - 2004-08-23 10:44:45
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_x Modified Files: ecore_x_window.c Ecore_X.h Log Message: added ecore_x_window_delete_request_send =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_window.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -3 -r1.21 -r1.22 --- ecore_x_window.c 12 Aug 2004 11:29:18 -0000 1.21 +++ ecore_x_window.c 23 Aug 2004 10:44:21 -0000 1.22 @@ -239,7 +239,36 @@ void ecore_x_window_del(Ecore_X_Window win) { - XDestroyWindow(_ecore_x_disp, win); + /* sorry sir, deleting the root window doesn't sound like + * a smart idea. + */ + if (win) + XDestroyWindow(_ecore_x_disp, win); +} + +/** + * Sends a delete request to the given window. + * @param win The given window. + * @ingroup Evas_X_Window_Destroy_Group + */ +void +ecore_x_window_delete_request_send(Ecore_X_Window win) +{ + /* sorry sir, deleting the root window doesn't sound like + * a smart idea. + */ + if (!win) + return; + + xev.xclient.type = ClientMessage; + xev.xclient.display = _ecore_x_disp; + xev.xclient.window = win; + xev.xclient.message_type = _ecore_x_atom_wm_protocols; + xev.xclient.format = 32; + xev.xclient.data.l[0] = _ecore_x_atom_wm_delete_window; + xev.xclient.data.l[1] = CurrentTime; + + XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev); } /** =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/Ecore_X.h,v retrieving revision 1.50 retrieving revision 1.51 diff -u -3 -r1.50 -r1.51 --- Ecore_X.h 23 Aug 2004 08:55:42 -0000 1.50 +++ Ecore_X.h 23 Aug 2004 10:44:22 -0000 1.51 @@ -739,6 +739,7 @@ Ecore_X_Window ecore_x_window_override_new(Ecore_X_Window parent, int x, int y, int w, int h); Ecore_X_Window ecore_x_window_input_new(Ecore_X_Window parent, int x, int y, int w, int h); void ecore_x_window_del(Ecore_X_Window win); +void ecore_x_window_delete_request_send(Ecore_X_Window win); void ecore_x_window_show(Ecore_X_Window win); void ecore_x_window_hide(Ecore_X_Window win); void ecore_x_window_move(Ecore_X_Window win, int x, int y); |
From: <enl...@li...> - 2004-08-23 10:47:32
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_x Modified Files: ecore_x_window.c Log Message: grrr, compile before you commit\! =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_window.c,v retrieving revision 1.22 retrieving revision 1.23 diff -u -3 -r1.22 -r1.23 --- ecore_x_window.c 23 Aug 2004 10:44:21 -0000 1.22 +++ ecore_x_window.c 23 Aug 2004 10:47:20 -0000 1.23 @@ -254,6 +254,8 @@ void ecore_x_window_delete_request_send(Ecore_X_Window win) { + XEvent xev; + /* sorry sir, deleting the root window doesn't sound like * a smart idea. */ |
From: <enl...@li...> - 2004-08-26 17:50:40
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_x Modified Files: Ecore_X.h ecore_x_window.c Log Message: added ecore_x_window_border_width_set() =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/Ecore_X.h,v retrieving revision 1.52 retrieving revision 1.53 diff -u -3 -r1.52 -r1.53 --- Ecore_X.h 25 Aug 2004 23:41:57 -0000 1.52 +++ Ecore_X.h 26 Aug 2004 17:50:29 -0000 1.53 @@ -755,6 +755,7 @@ void ecore_x_window_size_get(Ecore_X_Window win, int *w, int *h); void ecore_x_window_geometry_get(Ecore_X_Window win, int *x, int *y, int *w, int *h); int ecore_x_window_border_width_get(Ecore_X_Window win); +void ecore_x_window_border_width_set(Ecore_X_Window win, int width); int ecore_x_window_depth_get(Ecore_X_Window win); void ecore_x_window_cursor_show(Ecore_X_Window win, int show); void ecore_x_window_defaults_set(Ecore_X_Window win); =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_window.c,v retrieving revision 1.24 retrieving revision 1.25 diff -u -3 -r1.24 -r1.25 --- ecore_x_window.c 25 Aug 2004 23:41:57 -0000 1.24 +++ ecore_x_window.c 26 Aug 2004 17:50:33 -0000 1.25 @@ -491,6 +491,17 @@ } /** + * Sets the width of the border of the given window. + * @param win The given window. + * @ingroup Ecore_X_Window_Geometry_Group + */ +void +ecore_x_window_border_width_set(Ecore_X_Window win, int width) +{ + XSetWindowBorderWidth (_ecore_x_disp, win, width); +} + +/** * Retrieves the depth of the given window. * @param win The given window. * @return Depth of the window. |
From: <enl...@li...> - 2004-08-26 18:00:53
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_x Modified Files: ecore_x_window.c Log Message: don't allow ecore_x_window_border_width_get/set calls on the default root window. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_window.c,v retrieving revision 1.25 retrieving revision 1.26 diff -u -3 -r1.25 -r1.26 --- ecore_x_window.c 26 Aug 2004 17:50:33 -0000 1.25 +++ ecore_x_window.c 26 Aug 2004 18:00:42 -0000 1.26 @@ -487,6 +487,10 @@ int ecore_x_window_border_width_get(Ecore_X_Window win) { + /* doesn't make sense to call this on a root window */ + if (!win) + return 0; + return ecore_x_drawable_border_width_get(win); } @@ -498,6 +502,10 @@ void ecore_x_window_border_width_set(Ecore_X_Window win, int width) { + /* doesn't make sense to call this on a root window */ + if (!win) + return; + XSetWindowBorderWidth (_ecore_x_disp, win, width); } |
From: <enl...@li...> - 2004-08-26 18:05:32
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_x Modified Files: ecore_x_window.c Log Message: formatting fixes. added vim modeline =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_window.c,v retrieving revision 1.26 retrieving revision 1.27 diff -u -3 -r1.26 -r1.27 --- ecore_x_window.c 26 Aug 2004 18:00:42 -0000 1.26 +++ ecore_x_window.c 26 Aug 2004 18:05:25 -0000 1.27 @@ -1,3 +1,7 @@ +/* + * vim:ts=8:sw=3:sts=3:noexpandtab + */ + #include "Ecore.h" #include "ecore_x_private.h" #include "Ecore_X.h" @@ -239,11 +243,11 @@ void ecore_x_window_del(Ecore_X_Window win) { - /* sorry sir, deleting the root window doesn't sound like - * a smart idea. - */ - if (win) - XDestroyWindow(_ecore_x_disp, win); + /* sorry sir, deleting the root window doesn't sound like + * a smart idea. + */ + if (win) + XDestroyWindow(_ecore_x_disp, win); } /** @@ -254,23 +258,23 @@ void ecore_x_window_delete_request_send(Ecore_X_Window win) { - XEvent xev; + XEvent xev; + + /* sorry sir, deleting the root window doesn't sound like + * a smart idea. + */ + if (!win) + return; - /* sorry sir, deleting the root window doesn't sound like - * a smart idea. - */ - if (!win) - return; - - xev.xclient.type = ClientMessage; - xev.xclient.display = _ecore_x_disp; - xev.xclient.window = win; - xev.xclient.message_type = _ecore_x_atom_wm_protocols; - xev.xclient.format = 32; - xev.xclient.data.l[0] = _ecore_x_atom_wm_delete_window; - xev.xclient.data.l[1] = CurrentTime; + xev.xclient.type = ClientMessage; + xev.xclient.display = _ecore_x_disp; + xev.xclient.window = win; + xev.xclient.message_type = _ecore_x_atom_wm_protocols; + xev.xclient.format = 32; + xev.xclient.data.l[0] = _ecore_x_atom_wm_delete_window; + xev.xclient.data.l[1] = CurrentTime; - XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev); + XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev); } /** |
From: <enl...@li...> - 2004-08-27 09:37:23
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_evas Modified Files: Ecore_Evas.h.in ecore_evas_x.c Log Message: added ecore_evas_gl_x11_window_get() =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_evas/Ecore_Evas.h.in,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- Ecore_Evas.h.in 30 Apr 2004 03:10:16 -0000 1.2 +++ Ecore_Evas.h.in 27 Aug 2004 09:37:14 -0000 1.3 @@ -47,6 +47,7 @@ #if HAVE_ECORE_EVAS_GL Ecore_Evas *ecore_evas_gl_x11_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h); +Ecore_X_Window ecore_evas_gl_x11_window_get(Ecore_Evas *ee); #endif #if HAVE_ECORE_EVAS_FB =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_evas/ecore_evas_x.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -3 -r1.21 -r1.22 --- ecore_evas_x.c 13 Jul 2004 04:01:31 -0000 1.21 +++ ecore_evas_x.c 27 Aug 2004 09:37:14 -0000 1.22 @@ -1308,3 +1308,18 @@ return 0; #endif } + +/** + * To be documented. + * + * FIXME: To be fixed. + */ +Ecore_X_Window +ecore_evas_gl_x11_window_get(Ecore_Evas *ee) +{ +#ifdef BUILD_ECORE_X + return ee->engine.x.win_container; +#else + return 0; +#endif +} |
From: <enl...@li...> - 2004-08-27 10:02:53
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_evas Modified Files: Ecore_Evas.h.in Makefile.am ecore_evas_x.c Log Message: don't build the ecore_x dependant parts if we didn't built ecore_x at all =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_evas/Ecore_Evas.h.in,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- Ecore_Evas.h.in 27 Aug 2004 09:37:14 -0000 1.3 +++ Ecore_Evas.h.in 27 Aug 2004 10:02:45 -0000 1.4 @@ -24,6 +24,7 @@ extern "C" { #endif +#define HAVE_ECORE_EVAS_X @BUILD_ECORE_X@ #define HAVE_ECORE_EVAS_FB @BUILD_ECORE_EVAS_FB@ #define HAVE_ECORE_EVAS_GL @BUILD_ECORE_EVAS_GL@ @@ -42,6 +43,7 @@ int ecore_evas_shutdown(void); /* engine/target specific init calls */ +#if HAVE_ECORE_EVAS_X Ecore_Evas *ecore_evas_software_x11_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h); Ecore_X_Window ecore_evas_software_x11_window_get(Ecore_Evas *ee); @@ -49,6 +51,7 @@ Ecore_Evas *ecore_evas_gl_x11_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h); Ecore_X_Window ecore_evas_gl_x11_window_get(Ecore_Evas *ee); #endif +#endif #if HAVE_ECORE_EVAS_FB Ecore_Evas *ecore_evas_fb_new(char *disp_name, int rotation, int w, int h); =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_evas/Makefile.am,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- Makefile.am 23 Jul 2004 04:57:03 -0000 1.4 +++ Makefile.am 27 Aug 2004 10:02:45 -0000 1.5 @@ -42,10 +42,13 @@ libecore_evas_la_SOURCES = \ ecore_evas.c \ -ecore_evas_x.c \ ecore_evas_fb.c \ ecore_evas_private.h +if BUILD_ECORE_X +libecore_evas_la_SOURCES += ecore_evas_x.c +endif + libecore_evas_la_LIBADD = \ $(ECORE_X_LIB) \ $(ECORE_FB_LIB) \ =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_evas/ecore_evas_x.c,v retrieving revision 1.22 retrieving revision 1.23 diff -u -3 -r1.22 -r1.23 --- ecore_evas_x.c 27 Aug 2004 09:37:14 -0000 1.22 +++ ecore_evas_x.c 27 Aug 2004 10:02:45 -0000 1.23 @@ -3,11 +3,8 @@ #include "ecore_private.h" #include "ecore_evas_private.h" #include "Ecore_Evas.h" -#ifdef BUILD_ECORE_X #include "Ecore_X.h" -#endif -#ifdef BUILD_ECORE_X static int _ecore_evas_init_count = 0; static int _ecore_evas_fps_debug = 0; @@ -1117,7 +1114,6 @@ _ecore_evas_withdrawn_set, _ecore_evas_sticky_set }; -#endif /** * To be documented. @@ -1128,7 +1124,6 @@ ecore_evas_software_x11_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h) { -#ifdef BUILD_ECORE_X Evas_Engine_Info_Software_X11 *einfo; Ecore_Evas *ee; int rmethod; @@ -1192,16 +1187,24 @@ ecore_evases = _ecore_list_prepend(ecore_evases, ee); return ee; -#else - return NULL; -#endif } +/** + * To be documented. + * + * FIXME: To be fixed. + */ +Ecore_X_Window +ecore_evas_software_x11_window_get(Ecore_Evas *ee) +{ + return ee->engine.x.win_container; +} + +#ifdef BUILD_ECORE_EVAS_GL Ecore_Evas * ecore_evas_gl_x11_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h) { -#ifdef BUILD_ECORE_EVAS_GL Evas_Engine_Info_GL_X11 *einfo; Ecore_Evas *ee; int rmethod; @@ -1289,24 +1292,6 @@ ecore_evases = _ecore_list_prepend(ecore_evases, ee); return ee; -#else - return NULL; -#endif -} - -/** - * To be documented. - * - * FIXME: To be fixed. - */ -Ecore_X_Window -ecore_evas_software_x11_window_get(Ecore_Evas *ee) -{ -#ifdef BUILD_ECORE_X - return ee->engine.x.win_container; -#else - return 0; -#endif } /** @@ -1317,9 +1302,6 @@ Ecore_X_Window ecore_evas_gl_x11_window_get(Ecore_Evas *ee) { -#ifdef BUILD_ECORE_X return ee->engine.x.win_container; -#else - return 0; -#endif } +#endif |
From: <enl...@li...> - 2004-08-27 10:12:45
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/ecore Dir : e17/libs/ecore Modified Files: configure.in Log Message: make sure BUILD_ECORE_X is accessable =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/configure.in,v retrieving revision 1.54 retrieving revision 1.55 diff -u -3 -r1.54 -r1.55 --- configure.in 15 Jul 2004 13:34:46 -0000 1.54 +++ configure.in 27 Aug 2004 10:12:31 -0000 1.55 @@ -210,6 +210,7 @@ if test "x$have_ecore_x" = "xyes"; then AM_CONDITIONAL(BUILD_ECORE_X, true) AC_DEFINE(BUILD_ECORE_X, 1, [Build Ecore_X Module]) + BUILD_ECORE_X=1 x_dir="/usr/X11R6"; x_includes=""; x_cflags="-I"$x_dir"/include" @@ -218,8 +219,11 @@ ecore_x_libs="-lecore_x"; else AM_CONDITIONAL(BUILD_ECORE_X, false) + BUILD_ECORE_X=0 fi +AC_SUBST(BUILD_ECORE_X) + AC_SUBST(x_cflags) AC_SUBST(x_includes) AC_SUBST(x_ldflags) |
From: <enl...@li...> - 2004-08-27 22:34:03
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_x Modified Files: Ecore_X.h ecore_x_events.c Log Message: implemented events WINDOW_CONFIGURE_REQUEST and WINDOW_RESIZE_REQUEST (configure request done by werkt) =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/Ecore_X.h,v retrieving revision 1.53 retrieving revision 1.54 diff -u -3 -r1.53 -r1.54 --- Ecore_X.h 26 Aug 2004 17:50:29 -0000 1.53 +++ Ecore_X.h 27 Aug 2004 22:33:56 -0000 1.54 @@ -1,3 +1,7 @@ +/* + * vim:ts=8:sw=3:sts=3:noexpandtab + */ + #ifndef _ECORE_X_H #define _ECORE_X_H @@ -341,6 +345,11 @@ struct _Ecore_X_Event_Window_Configure_Request { Ecore_X_Window win; + Ecore_X_Window abovewin; + int x, y, w, h; + int border; + int detail; + unsigned long value_mask; Ecore_X_Time time; }; @@ -353,6 +362,7 @@ struct _Ecore_X_Event_Window_Resize_Request { Ecore_X_Window win; + int w, h; Ecore_X_Time time; }; =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_events.c,v retrieving revision 1.32 retrieving revision 1.33 diff -u -3 -r1.32 -r1.33 --- ecore_x_events.c 20 Aug 2004 22:37:10 -0000 1.32 +++ ecore_x_events.c 27 Aug 2004 22:33:56 -0000 1.33 @@ -1,3 +1,7 @@ +/* + * vim:ts=8:sw=3:sts=3:noexpandtab + */ + #include "Ecore.h" #include "ecore_x_private.h" #include "Ecore_X.h" @@ -746,7 +750,20 @@ void _ecore_x_event_handle_configure_request(XEvent *xevent) { - /* FIXME: handle this event type */ + Ecore_X_Event_Window_Configure_Request *e; + + e = calloc(1, sizeof(Ecore_X_Event_Window_Configure_Request)); + if (!e) return; + e->win = xevent->xconfigurerequest.window; + e->abovewin = xevent->xconfigurerequest.above; + e->x = xevent->xconfigurerequest.x; + e->y = xevent->xconfigurerequest.y; + e->w = xevent->xconfigurerequest.width; + e->h = xevent->xconfigurerequest.height; + e->border = xevent->xconfigurerequest.border_width; + e->value_mask = xevent->xconfigurerequest.value_mask; + e->time = _ecore_x_event_last_time; + ecore_event_add(ECORE_X_EVENT_WINDOW_CONFIGURE_REQUEST, e, NULL, NULL); } void @@ -758,7 +775,15 @@ void _ecore_x_event_handle_resize_request(XEvent *xevent) { - /* FIXME: handle this event type */ + Ecore_X_Event_Window_Resize_Request *e; + + e = calloc(1, sizeof(Ecore_X_Event_Window_Resize_Request)); + if (!e) return; + e->win = xevent->xresizerequest.window; + e->w = xevent->xresizerequest.width; + e->h = xevent->xresizerequest.height; + e->time = _ecore_x_event_last_time; + ecore_event_add(ECORE_X_EVENT_WINDOW_RESIZE_REQUEST, e, NULL, NULL); } void |
From: <enl...@li...> - 2004-08-28 09:58:55
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_x Modified Files: Ecore_X.h ecore_x_window.c Log Message: added ecore_x_window_configure =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/Ecore_X.h,v retrieving revision 1.54 retrieving revision 1.55 diff -u -3 -r1.54 -r1.55 --- Ecore_X.h 27 Aug 2004 22:33:56 -0000 1.54 +++ Ecore_X.h 28 Aug 2004 09:58:39 -0000 1.55 @@ -701,6 +701,16 @@ ECORE_X_WINDOW_TYPE_NORMAL } Ecore_X_Window_Type; +typedef enum _Ecore_X_Window_Configure_Mask { + ECORE_X_WINDOW_CONFIGURE_MASK_X = (1 << 0), + ECORE_X_WINDOW_CONFIGURE_MASK_Y = (1 << 1), + ECORE_X_WINDOW_CONFIGURE_MASK_W = (1 << 2), + ECORE_X_WINDOW_CONFIGURE_MASK_H = (1 << 3), + ECORE_X_WINDOW_CONFIGURE_MASK_BORDER_WIDTH = (1 << 4), + ECORE_X_WINDOW_CONFIGURE_MASK_SIBLING = (1 << 5), + ECORE_X_WINDOW_CONFIGURE_MASK_STACK_MODE = (1 << 6) +} Ecore_X_Window_Configure_Mask; + /* Window layer constants */ #define ECORE_X_WINDOW_LAYER_BELOW 2 #define ECORE_X_WINDOW_LAYER_NORMAL 4 @@ -748,6 +758,12 @@ Ecore_X_Window ecore_x_window_new(Ecore_X_Window parent, int x, int y, int w, int h); Ecore_X_Window ecore_x_window_override_new(Ecore_X_Window parent, int x, int y, int w, int h); Ecore_X_Window ecore_x_window_input_new(Ecore_X_Window parent, int x, int y, int w, int h); +void ecore_x_window_configure(Ecore_X_Window win, + Ecore_X_Window_Configure_Mask mask, + int x, int y, int w, int h, + int border_width, + Ecore_X_Window sibling, + int stack_mode); void ecore_x_window_cursor_set(Ecore_X_Window win, Ecore_X_Cursor c); void ecore_x_window_del(Ecore_X_Window win); =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_window.c,v retrieving revision 1.27 retrieving revision 1.28 diff -u -3 -r1.27 -r1.28 --- ecore_x_window.c 26 Aug 2004 18:05:25 -0000 1.27 +++ ecore_x_window.c 28 Aug 2004 09:58:39 -0000 1.28 @@ -229,6 +229,29 @@ ecore_x_window_prop_command_set(win, argc, argv); } +void +ecore_x_window_configure(Ecore_X_Window win, + Ecore_X_Window_Configure_Mask mask, + int x, int y, int w, int h, + int border_width, Ecore_X_Window sibling, + int stack_mode) +{ + XWindowChanges xwc; + + if (!win) + return; + + xwc.x = x; + xwc.y = y; + xwc.width = w; + xwc.height = h; + xwc.border_width = border_width; + xwc.sibling = sibling; + xwc.stack_mode = stack_mode; + + XConfigureWindow(_ecore_x_disp, win, mask, &xwc); +} + /** * @defgroup Evas_X_Window_Destroy_Group X Window Destroy Functions * |
From: <enl...@li...> - 2004-09-02 16:50:25
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_evas Modified Files: Ecore_Evas.h.in ecore_evas.c ecore_evas_private.h Log Message: implemented ecore_evas_data_get/set =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_evas/Ecore_Evas.h.in,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- Ecore_Evas.h.in 27 Aug 2004 10:02:45 -0000 1.4 +++ Ecore_Evas.h.in 2 Sep 2004 16:50:18 -0000 1.5 @@ -10,7 +10,6 @@ * to do soon: * - iconfication api needs to work * - maximization api nees to work - * - attach keyed data to an ecore_evas canvas * - document all calls * * later: @@ -59,6 +58,8 @@ /* generic manipulation calls */ void ecore_evas_free(Ecore_Evas *ee); +void *ecore_evas_data_get(Ecore_Evas *ee, const char *key); +void ecore_evas_data_set(Ecore_Evas *ee, const char *key, const void *data); void ecore_evas_callback_resize_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee)); void ecore_evas_callback_move_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee)); void ecore_evas_callback_show_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee)); =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_evas/ecore_evas.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -3 -r1.14 -r1.15 --- ecore_evas.c 8 Jul 2004 14:42:12 -0000 1.14 +++ ecore_evas.c 2 Sep 2004 16:50:18 -0000 1.15 @@ -62,6 +62,7 @@ return; } ECORE_MAGIC_SET(ee, ECORE_MAGIC_NONE); + if (ee->data) evas_hash_free(ee->data); if (ee->driver) free(ee->driver); if (ee->name) free(ee->name); if (ee->prop.title) free(ee->prop.title); @@ -70,6 +71,7 @@ if (ee->prop.cursor.file) free(ee->prop.cursor.file); if (ee->prop.cursor.object) evas_object_del(ee->prop.cursor.object); if (ee->evas) evas_free(ee->evas); + ee->data = NULL; ee->driver = NULL; ee->name = NULL; ee->prop.title = NULL; @@ -82,6 +84,37 @@ free(ee); } +void * +ecore_evas_data_get(Ecore_Evas *ee, const char *key) +{ + if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS)) + { + ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS, + "ecore_evas_data_get"); + return NULL; + } + + if (!key) return NULL; + + return evas_hash_find(ee->data, key); +} + +void +ecore_evas_data_set(Ecore_Evas *ee, const char *key, const void *data) +{ + if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS)) + { + ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS, + "ecore_evas_data_set"); + return; + } + + if (!key) return; + + ee->data = evas_hash_del(ee->data, key, NULL); + ee->data = evas_hash_add(ee->data, key, data); +} + #define IFC(_ee, _fn) if (_ee->engine.func->_fn) {_ee->engine.func->_fn #define IFE return;} =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_evas/ecore_evas_private.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- ecore_evas_private.h 17 Mar 2004 05:14:13 -0000 1.5 +++ ecore_evas_private.h 2 Sep 2004 16:50:18 -0000 1.6 @@ -104,7 +104,9 @@ char shaped : 1; char visible : 1; char should_be_visible : 1; - + + Evas_Hash *data; + struct { int x, y; } mouse; |
From: <enl...@li...> - 2004-09-02 18:22:26
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_x Modified Files: ecore_x_window_prop.c Log Message: added some sanity checks to ecore_x_window_property_get =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_window_prop.c,v retrieving revision 1.46 retrieving revision 1.47 diff -u -3 -r1.46 -r1.47 --- ecore_x_window_prop.c 22 Aug 2004 22:04:12 -0000 1.46 +++ ecore_x_window_prop.c 2 Sep 2004 18:22:19 -0000 1.47 @@ -52,7 +52,15 @@ int ret, size_ret = 0; unsigned long num_ret = 0, bytes = 0, i; unsigned char *prop_ret = NULL; - + + /* make sure these are initialized */ + if (num) *num = 0; + + if (data) + *data = NULL; + else /* we can't store the retrieved data, so just return */ + return 0; + if (!win) win = DefaultRootWindow(_ecore_x_disp); ret = XGetWindowProperty(_ecore_x_disp, win, property, 0, LONG_MAX, @@ -60,14 +68,10 @@ &num_ret, &bytes, &prop_ret); if (ret != Success) - { - *data = NULL; return 0; - } if (size != size_ret || !num_ret) { XFree(prop_ret); - *data = NULL; return 0; } @@ -91,7 +95,7 @@ XFree(prop_ret); - *num = num_ret; + if (num) *num = num_ret; return 1; } |
From: <enl...@li...> - 2004-09-02 18:45:40
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_x Modified Files: Ecore_X.h ecore_x_window_prop.c Log Message: implemented ecore_x_window_prop_borderless_get() =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/Ecore_X.h,v retrieving revision 1.55 retrieving revision 1.56 diff -u -3 -r1.55 -r1.56 --- Ecore_X.h 28 Aug 2004 09:58:39 -0000 1.55 +++ Ecore_X.h 2 Sep 2004 18:45:31 -0000 1.56 @@ -820,6 +820,7 @@ void ecore_x_window_prop_step_size_set(Ecore_X_Window win, int x, int y); void ecore_x_window_prop_xy_set(Ecore_X_Window win, int x, int y); void ecore_x_window_prop_borderless_set(Ecore_X_Window win, int borderless); +int ecore_x_window_prop_borderless_get(Ecore_X_Window win); int ecore_x_window_prop_layer_set(Ecore_X_Window win, int layer); void ecore_x_window_prop_withdrawn_set(Ecore_X_Window win, int withdrawn); void ecore_x_window_prop_desktop_request(Ecore_X_Window win, long desktop); =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_window_prop.c,v retrieving revision 1.47 retrieving revision 1.48 diff -u -3 -r1.47 -r1.48 --- ecore_x_window_prop.c 2 Sep 2004 18:22:19 -0000 1.47 +++ ecore_x_window_prop.c 2 Sep 2004 18:45:31 -0000 1.48 @@ -1,3 +1,7 @@ +/* + * vim:ts=8:sw=3:sts=3:noexpandtab + */ + #include "Ecore.h" #include "ecore_x_private.h" #include "Ecore_X.h" @@ -785,6 +789,28 @@ } /** + * To be documented. + * + * FIXME: To be fixed. + */ +int +ecore_x_window_prop_borderless_get(Ecore_X_Window win) +{ + unsigned char *data; + int num; + + ecore_x_window_prop_property_get(win, + _ecore_x_atom_motif_wm_hints, + _ecore_x_atom_motif_wm_hints, + 32, &data, &num); + + /* check for valid data. only read the borderless flag if the + * decorations data has been set. + */ + return (data && num > 2 && data[0] & 2) ? !data[2] : 0; +} + +/** * Puts @a win in the desired layer. This currently works with * windowmanagers that are Gnome-compliant or support NetWM. * |
From: <enl...@li...> - 2004-10-19 16:40:32
|
Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/ecore Dir : e17/libs/ecore Modified Files: ecore.supp Log Message: more suppressions =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/ecore.supp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- ecore.supp 17 Jan 2004 23:50:13 -0000 1.1 +++ ecore.supp 19 Oct 2004 16:40:25 -0000 1.2 @@ -1,4 +1,4 @@ -# $Id: ecore.supp,v 1.1 2004/01/17 23:50:13 tsauerbeck Exp $ +# $Id: ecore.supp,v 1.2 2004/10/19 16:40:25 tsauerbeck Exp $ # valgrind suppression file for Ecore # { @@ -9,3 +9,38 @@ fun:_XmbTextPropertyToTextList fun:XmbTextPropertyToTextList } +{ + bogus2 + Memcheck:Param + write(buf) + obj:/lib/ld-2.3.3.so + fun:_X11TransWrite + obj:/usr/X11R6/lib/libX11.so.6.2 + fun:_XReply +} +{ + bogus3 + Memcheck:Cond + obj:/usr/X11R6/lib/libX11.so.6.2 + obj:/usr/X11R6/lib/libX11.so.6.2 + obj:/usr/X11R6/lib/libX11.so.6.2 + fun:_XlcCreateLocaleDataBase +} +{ + bogus4 + Memcheck:Param + write(buf) + obj:/lib/ld-2.3.3.so + fun:_X11TransWrite + obj:/usr/X11R6/lib/libX11.so.6.2 + fun:_XFlush +} +{ + blah, blah, xlib sucks + Memcheck:Param + writev(vector[...]) + obj:/lib/ld-2.3.3.so + obj:/usr/X11R6/lib/libX11.so.6.2 + fun:_X11TransWritev + fun:_XSend +} |