Commit Graph

43 Commits

Author SHA1 Message Date
Lucas De Marchi 5a8a8c9014 Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci

This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:

code before patch               ||code after patch
===============================================================

return a == NULL;                 return !a;

return a != NULL;                 return !!a;

func(a == NULL);                  func(!a);

func(a != NULL);                  func(!!a);

b = a == NULL;                    b = !a;

b = a != NULL;                    b = !!a;

b = a == NULL ? c : d;            b = !a ? c : d;

b = a != NULL ? c : d;            b = a ? c : d;


other cases:

a == NULL                         !a
a != NULL                         a




SVN revision: 51487
2010-08-21 13:52:25 +00:00
Lucas De Marchi bbc863fbe7 init/shutdown ecore in ecore_x_init
2 simple rules:
 1) init what you use
 2) shutdown what you init



SVN revision: 50836
2010-08-05 13:50:47 +00:00
Lucas De Marchi 0a4617ae38 FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Mike Blumenkrantz d07a90f62a re-uncrustify
SVN revision: 50745
2010-08-02 17:47:49 +00:00
Carsten Haitzler bdce85e21c del x fd handler before close.
SVN revision: 50669
2010-07-30 02:44:43 +00:00
Mike Blumenkrantz e248c8b6fc uncrustify so T_UNIX will stop nagging me! :)
SVN revision: 50583
2010-07-28 05:23:42 +00:00
Lucas De Marchi 01d20339dd Create interface to system bell
Only the xlib implementation is done. It's calling XBell() to alert user.



SVN revision: 50290
2010-07-16 20:54:18 +00:00
Cedric BAIL fbe9064310 * ecore: Ecore callback really should return Eina_Bool.
SVN revision: 49829
2010-06-24 16:15:56 +00:00
Carsten Haitzler eb886add0e be mroe explicit on keeping im handle.
SVN revision: 49444
2010-06-04 06:36:54 +00:00
Carsten Haitzler eaad0eb095 big patch from Samsung SAIT (Advanced research group) for async multi-frame
rendering. to turn on:

1.
configure with --enable-async-render
2.
export EVAS_RENDER_MODE=non-blocking
  
presto. necessitates some api swizzling (thus the expedite. ecore etc. changes)

the kind of results you get on a desktop:

http://www.rasterman.com/files/evas-async-vs-none.html



SVN revision: 49087
2010-05-21 07:10:45 +00:00
Carsten Haitzler e5d2bea7ec oops! screen 0 not 1!
SVN revision: 46779
2010-03-02 08:06:37 +00:00
Carsten Haitzler 02d8dc445f why do a round trip for local info like.. root window # 0...
SVN revision: 46460
2010-02-25 12:26:25 +00:00
Carsten Haitzler b0045cb9b7 add lots of logging functions - for trackign x overhead when u cant get
symbols... booo! - disabled of course.



SVN revision: 46458
2010-02-25 12:19:02 +00:00
Carsten Haitzler eb650a7300 some roundtrips--
SVN revision: 46420
2010-02-24 04:36:22 +00:00
Carsten Haitzler 7e5b054289 little shim - disabled, but can be used in future to hunt down round-trips.
SVN revision: 46139
2010-02-13 13:32:21 +00:00
Carsten Haitzler 921587e70b more work on the sync stuff... looking good now.
SVN revision: 45772
2010-02-01 14:13:48 +00:00
Carsten Haitzler a5d8c4f9b8 make genericevent ifdefed - obviously is too new. oddd - it's on ubuntu 9.04
- which isnt too new.



SVN revision: 45349
2010-01-20 00:09:26 +00:00
이상진 6052f73462 From: 이상진 <lsj119@samsung.com>
generic events exposed from ecore_x (if you have the newest xlib goop like xi2)



SVN revision: 45318
2010-01-19 05:13:58 +00:00
Carsten Haitzler 258f47f511 also more multitouch suport improvements.
SVN revision: 45249
2010-01-17 08:52:38 +00:00
Sebastian Dransfeld 8007e73077 Patch from Mathieu Taillefumier
I modified some hearder file in ecore to ease the cleanup of the private
header files in ecore. Each module has now a private header with its own
log color (eina_log related). I also created two private header files
for ecore_sdl and ecore_input for this purpose and corrected some typos
in the xlib_xcb private header file.

SVN revision: 44933
2010-01-07 00:30:05 +00:00
Vincent Torri a4b0afb1e4 * move structures from ecore_private.h to the corresponding source files
* add 2 internal ecore_exe functions as ecore_signak.c uses Ecore_Exe members
   no test is done in those 2 functions
 * remove standard headers from ecore_private.h



SVN revision: 44862
2010-01-03 21:55:50 +00:00
Sebastian Dransfeld 0a9456ccf7 Remove duplication from ecore headers
Clean up Ecore.h and ecore_private.h

SVN revision: 44664
2009-12-22 21:15:12 +00:00
Cedric BAIL d8e1895350 * ecore: Use eina_log.
Patch from Mathieu Taillefumier.


SVN revision: 44637
2009-12-21 17:32:19 +00:00
Vincent Torri 4072d0b23d * check the returned value of the _init() functions
* simplify a bit the init/shutdown functions


SVN revision: 42995
2009-10-10 05:28:43 +00:00
Vincent Torri 3c7680e6cb * add ecore_x_atom_name_get() API (will be used by ewl)
* move atom related functions from ecore_x.c to ecore_x_atom.c


SVN revision: 41283
2009-07-09 04:55:11 +00:00
Carsten Haitzler dc09494b26 hmm why wasnt this committed?
SVN revision: 40535
2009-05-07 13:27:59 +00:00
Andreas Volz f73ad689da added xlib implementation for ecore_x_default_screen_get
SVN revision: 40511
2009-05-05 18:50:29 +00:00
Massimiliano Calamelli 9dd0697b54 Place the ECORE_XSS #endif in the right place, otherwise ecore fails to buils if there is no screensaver extension
SVN revision: 40503
2009-05-03 21:26:08 +00:00
Gustavo Sverzut Barbieri 79631a6f0f xrandr1.3 support: first steps (events).
starting to implement xrandr 1.3 support, now we support all events
and their fields.

This commit also fix way that extensions register their ids and
base. The way it was, ids was being added to the last event id, that
was wrong! Fortunately, those that were wrong had just one event and
always added "0", making no harm.



SVN revision: 40492
2009-05-02 23:34:29 +00:00
Gustavo Sverzut Barbieri babc8d254f export way to handle raw xlib/xcb events.
Patch by Kenneth Christiansen, xcb by me and untested.



SVN revision: 40113
2009-04-16 17:29:00 +00:00
Sebastian Dransfeld f388ddcd53 ECORE_X_MODIFIER_* are now internal to ecore_x.
SVN revision: 39543
2009-03-18 08:29:59 +00:00
Cedric BAIL bff5617109 * ecore_x: Unbreak E17 use of ALT modifier. Bindings should work again.
SVN revision: 39517
2009-03-17 13:23:04 +00:00
Cedric BAIL 57e8d73fba Let me introduce you to Ecore_Input. The idea is to share as much as possible event
between all ecore graphic engine to ease porting of application and reduce the amount of
specific code per engine. This patch does just that.
	All your application should continu to work has previously, if it's not the case
please report any new behaviour regarding mouse and keyboard.


SVN revision: 39505
2009-03-16 16:24:43 +00:00
Carsten Haitzler 29cad587b5 filter excess motion events
SVN revision: 38978
2009-02-09 11:16:56 +00:00
Carsten Haitzler 5411f11877 allow ecore_x to use auto-repeat detection - if its in xlib.
SVN revision: 38932
2009-02-04 00:05:42 +00:00
Vincent Torri e18508b701 remove a bit the mess n ecore. It's just the first patch...
* add vim header
 * include config.h when necessary
 * fix the order of some include
 * move the standard header in ecore_private.h to the source files

I have recompiled all the efl and e17, and e17 seems to work fine with these changes.
If you encounter problems with that commit, let me know.


SVN revision: 38864
2009-01-31 18:33:39 +00:00
Cedric BAIL e51aa4745a Valgrind complain when doing IC Destroy after XCloseDisplay, doing it before
sounds better to valgrind.


SVN revision: 38021
2008-12-08 14:29:44 +00:00
Iván Briano d4d14f54ed Very basic Input Method support. For now, it only uses X default to support things like composed characters with deadkeys kb layouts.
SVN revision: 38008
2008-12-08 00:28:37 +00:00
Carsten Haitzler 4d3f6362b6 fix dpi check! oops!
SVN revision: 36210
2008-09-24 13:03:54 +00:00
Carsten Haitzler 44fc837b6a add simple dpi get call
SVN revision: 36205
2008-09-24 10:18:26 +00:00
Carsten Haitzler 1dce18e33a illogict - patch for right lefty mouse...
- ecore-x-pointer_mapping_support.patch: add support for modifying
pointer button mapping



SVN revision: 36113
2008-09-20 02:19:38 +00:00
Peter Wehrfritz b57eac0726 fix warnings
SVN revision: 35262
2008-07-30 22:59:23 +00:00
doursse ef61dbeb14 Big change in configure.in, ecore_x and ecore_evas. Everything compile nicely
after a make maintainer-clean, with xlib or xcb. e17 also has no problem.
Please report any problem. Thanks

 * put xlib and xcb specific code in their own directories inside ecore_x
 * fix xcb logic check in autotools and ecore_evas
 * update configure.in for detection of ecore_evas with xlib and xcb support,
   update ecore_evas accordingly. Note that e17 needs a little fix after that,
   it will come in a few minutes


SVN revision: 35188
2008-07-23 10:00:01 +00:00