Lucas De Marchi
4f12b27ec7
Fix return value
...
SVN revision: 50835
2010-08-05 13:48:43 +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
54a05dc2aa
re-reformat
...
SVN revision: 50747
2010-08-02 18:54:27 +00:00
Carsten Haitzler
bdce85e21c
del x fd handler before close.
...
SVN revision: 50669
2010-07-30 02:44:43 +00:00
Mike Blumenkrantz
a1022c849e
shutup libtool on convenience libs
...
SVN revision: 50444
2010-07-23 04:20:24 +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
Lucas De Marchi
2a84379ba9
Remove unneeded code with notnull.cocci script
...
The notnull.cocci script from Coccinelle finds places where you check if a
variable is NULL, but it's known not to be NULL. The check can be safely
removed. For example, this code would be caught by notnull:
if (!var) return;
if (var && var->fld) { ... }
It's needless to check again if var is not NULL because if it's in fact NULL,
it would have returned on the previous "if". This commit removes all the
trivial places where this pattern happens. Another patch will be generated for
the more complex cases.
SVN revision: 50241
2010-07-14 02:05:47 +00:00
Lucas De Marchi
7051feb04e
Fix callback signatures
...
The change from returning int to Eina_Bool left several call sites with
warnings because they were not updated. Here they are fixed by using
Coccinelle, a tool that allows us to automate tasks like that. This
commit was generated from the following semantic patch:
virtual org
@r1@
identifier fn!=NULL, fn2;
expression E1, E2, E3;
@@
(
ecore_event_handler_add(E1, fn, ...)
|
ecore_event_filter_add(E1, fn, ...)
|
ecore_idler_add(fn, ...)
|
ecore_idle_enterer_add(E1, fn, ...)
|
ecore_idle_enterer_before_add(E1, fn, ...)
|
ecore_idle_exiter_add(E1, fn, ...)
|
ecore_main_fd_handler_add(E1, E2, fn, E3, fn2, ...)
|
ecore_main_win32_handler_add(E1, fn, ...)
|
ecore_timer_add(E1, fn, ...)
|
ecore_timer_loop_add(E1, fn, ...)
|
ecore_animator_add(fn, ...)
|
ecore_poller_add(E1, E2, fn, ...)
)
@r2@
identifier r1.fn;
identifier ret;
typedef Eina_Bool;
position p;
@@
- int
+ Eina_Bool
fn@p(...) {
<...
(
- return 1;
+ return EINA_TRUE;
|
- return 0;
+ return EINA_FALSE;
|
- int
+ Eina_Bool
ret;
...
return <+...ret...+>;
|
return ...;
)
...>
}
@r3@
identifier r1.fn2;
identifier ret;
position p;
@@
- int
+ Eina_Bool
fn2@p(...) {
...
(
- return 1;
+ return EINA_TRUE;
|
- return 0;
+ return EINA_FALSE;
|
- int
+ Eina_Bool
ret;
...
return <+...ret...+>;
|
return ...;
)
...
}
@r4@
identifier r1.fn;
@@
- int
+ Eina_Bool
fn(...);
@r5@
identifier r1.fn2;
@@
- int
+ Eina_Bool
fn2(...);
@script:python depends on org@
p << r2.p;
f << r1.fn;
@@
import sys
msg="WARNING: wrong callback %s! ( %s:%s )" % (f, p[0].file,p[0].line)
print >> sys.stderr, msg
@script:python depends on org@
p << r3.p;
f << r1.fn2;
@@
import sys
msg="WARNING: wrong callback %s! ( %s:%s )" % (f, p[0].file,p[0].line)
print >> sys.stderr, msg
SVN revision: 49985
2010-07-02 01:38:05 +00:00
Cedric BAIL
fbe9064310
* ecore: Ecore callback really should return Eina_Bool.
...
SVN revision: 49829
2010-06-24 16:15:56 +00:00
Vincent Torri
a90bb64143
fix icccm
...
Patch by Alexander Kerner
SVN revision: 49691
2010-06-15 23:45:45 +00:00
Vincent Torri
eb4c9979f2
fix for double free, occured while processing a buffered event twice.
...
patch by Alexander Kerner
SVN revision: 49690
2010-06-15 22:37:07 +00:00
Vincent Torri
af955f4767
wrong symbol
...
SVN revision: 49674
2010-06-14 20:44:44 +00:00
Vincent Torri
698ac34608
formatting
...
SVN revision: 49672
2010-06-14 19:34:14 +00:00
Vincent Torri
de14ee6ecf
fix compilation
...
SVN revision: 49671
2010-06-14 19:32:24 +00:00
Vincent Torri
b1a203f57b
fix selection compilation
...
SVN revision: 49670
2010-06-14 19:22:45 +00:00
Vincent Torri
635ac723f6
add the missing functions
...
ecore_x_sync_counter_new()
ecore_x_sync_counter_free()
ecore_x_sync_counter_inc()
ecore_x_sync_counter_val_wait()
SVN revision: 49669
2010-06-14 19:21:11 +00:00
Vincent Torri
5d148e55b1
fix code.
...
Patch by Mikhail Gusarov
SVN revision: 49668
2010-06-14 19:19:30 +00:00
Vincent Torri
7c4ab89bc9
XCB used to provide iterators for requests returning
...
list of values. Recent versions dropped it and return
arrays instead. Adapt code to use arrays unconditionally
(arrays were present in earlier libxcb versions).
Patch by Mikhail Gusarov
SVN revision: 49667
2010-06-14 19:17:49 +00:00
Vincent Torri
f447e95940
update to latest scb-util version (xcb icccm api changed)
...
SVN revision: 46987
2010-03-08 08:12:45 +00:00
Vincent Torri
4c776308fb
remove ecore_txt
...
SVN revision: 46985
2010-03-08 08:08:04 +00:00
Vincent Torri
5c2f696d25
ecore_x does not use ecore_txt functions anymore, so remove the
...
dependency on ecore_txt. I disable ecore_txt by default too
I can't test it (i'm on Windows). If you experience errors during
the build, please reply in this thread.
SVN revision: 46209
2010-02-16 13:14:07 +00:00
Sebastian Dransfeld
743bc86799
Remove Ecore_Txt
...
SVN revision: 45791
2010-02-02 04:50:04 +00:00
Sebastian Dransfeld
03d9fb7b94
Remove Ecore_Data
...
SVN revision: 45602
2010-01-26 21:08:13 +00:00
Vincent Torri
01adcea234
fix function name
...
patch by Albin Tonnerre
SVN revision: 45431
2010-01-22 06:53:24 +00:00
Mikhail Gusarov
99a429aab7
ecore_x/xcb: Fix broken init count in ecore_x_init
...
SVN revision: 45109
2010-01-14 05:10:26 +00:00
Mikhail Gusarov
513a9dab25
ecore_x/xcb: Do not segfault if unable to connect to display
...
There is xcb_connection_has_error to check connection errors,
and return value of xcb_connect is always non-NULL.
SVN revision: 45088
2010-01-13 20:24:48 +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
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
Mikhail Gusarov
a704b35961
Use proper index to select mask in _ecore_xcb_key_mask_get
...
SVN revision: 43607
2009-11-10 22:15:00 +00:00
Vincent Torri
ba758fdd47
return immediatly if the title is NULL
...
SVN revision: 43247
2009-10-24 09:58:46 +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
4cccce6dfe
query sync counter. Round trip to fix, though
...
SVN revision: 42835
2009-10-01 09:03:23 +00:00
Vincent Torri
160d5c97b2
send last timestamp as time.
...
SVN revision: 42832
2009-10-01 08:30:24 +00:00
Mikhail Gusarov
8b293c2209
Fix memory corruption in ecore_xcb_window.c::ecore_x_window_children_get
...
Function allocated reply->children_len bytes, and then copied
sizeof(Ecore_X_Window) * reply->childen_len bytes into the buffer, leading
to memory corruption.
SVN revision: 42624
2009-09-22 18:18:28 +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
Vincent Torri
20108eea57
Add Region API to ecore_x (Xlib using Region and XCB using pixman).
...
This allow to use the same code in ecore_evas for Xlib and XCB
SVN revision: 40959
2009-06-08 06:34:20 +00:00
Vincent Torri
4065fdd4f5
API BREAK
...
fix consistentness of ecore_x API. Rename some _del functions to _free ones.
See ticket #302
SVN revision: 40532
2009-05-07 08:35:00 +00:00
Vincent Torri
90061cb121
add to the API the function ecore_x_drawable_rectangle_fill() that
...
fills a rectangle on the specified drawable. It will be used in ecore_evas
to factorize the code.
SVN revision: 40358
2009-04-25 07:16:26 +00:00
Vincent Torri
4aea12e286
free the events sent by the X server
...
SVN revision: 40271
2009-04-21 17:42:25 +00:00
Vincent Torri
8801b817ea
typo
...
SVN revision: 40217
2009-04-19 08:39:09 +00:00
Vincent Torri
b7f578680c
fix ecore_input use
...
SVN revision: 40216
2009-04-19 08:37:50 +00:00
Vincent Torri
aef319dc5f
more fixes
...
SVN revision: 40211
2009-04-19 07:16:11 +00:00
Vincent Torri
bfb89c4857
missing guards--
...
SVN revision: 40209
2009-04-19 06:46:02 +00:00
Vincent Torri
aaa733d25b
* fix warnings
...
* add missing guards
* add missing QueryVersion check for the screensaver extension
SVN revision: 40207
2009-04-19 06:36:47 +00:00
Vincent Torri
f0612cc992
Typo reported by Cedric Ollivier, thanks !
...
SVN revision: 40163
2009-04-18 12:08:56 +00:00
Gustavo Sverzut Barbieri
0f8b812d0c
fix bad sed by someone else.
...
SVN revision: 40139
2009-04-17 16:02:07 +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
Vincent Torri
f7d7e4e74a
API BREAK
...
for consistentness, ecore_***_window_del is renamed
ecore_***_window_free
SVN revision: 39918
2009-04-10 08:46:41 +00:00
Vincent Torri
3e94ac52b6
* API BREAK: ecore_gc_new can create now a graphic context
...
with all the values that the X protocol allows. See
documentation for more info about its use
* use it in ecore_evas
SVN revision: 39654
2009-03-23 13:28:59 +00:00
Gustavo Sverzut Barbieri
354b23a12e
Make ecore_x_selection a bit more generic, at least on event reporting.
...
SVN revision: 39633
2009-03-22 18:19:17 +00:00
Vincent Torri
91c7e2c0d2
fix test
...
SVN revision: 39618
2009-03-22 09:56:43 +00:00
Gustavo Sverzut Barbieri
a8838b698e
constness++ and warnings--
...
SVN revision: 39563
2009-03-18 23:51:35 +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
a11beb0a96
* ecore_xcb: Fix key grab too.
...
SVN revision: 39518
2009-03-17 13:34:40 +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
Cedric BAIL
6978e98dc6
* estickies,
...
* etk,
* PROTO/exalt,
* E-MODULES-EXTRA/diskio,
* E-MODULES-EXTRA/drawer,
* E-MODULES-EXTRA/penguins,
* E-MODULES-EXTRA/slideshow,
* E-MODULES-EXTRA/mail,
* E-MODULES-EXTRA/forecasts,
* E-MODULES-EXTRA/iiirk,
* E-MODULES-EXTRA/places,
* e,
* ewl,
* ecore,
* elitaire,
* entrance,
* e_dbus,
* efreet: Here we go, move from Ecore_List to Eina_List.
NOTE: This patch is huge, I did test it a lot, and I hope nothing is
broken. But if you think something change after this commit, please
contact me ASAP.
SVN revision: 39200
2009-02-25 11:03:47 +00:00
Kim Woelders
584ff43a5c
Add _NET_WM_ACTION_ABOVE/BELOW.
...
SVN revision: 38962
2009-02-07 12:16:13 +00:00
Cedric BAIL
642d8686de
Remove ecore_hash and eina_hash use from ecore.
...
SVN revision: 38105
2008-12-11 13:55:47 +00:00
Massimiliano Calamelli
3292fa9100
Fix doxy
...
SVN revision: 37526
2008-11-06 15:59:28 +00:00
Vincent Torri
9b19b7dec4
autotools fixes
...
* remove useless _DEPENDENCIES variables
* remove useless files in EXTRA_DIST
* use -no-undefied directly
* add some flags when the host is windows ce
make distcheck succeeds on my computer
next step will be to fix the horrible mess in Ecore.h and ecore_private.h
SVN revision: 37406
2008-11-02 09:01:35 +00:00
Cedric BAIL
3d49d88a32
Make ecore depend on eina. No change in the code yet, so just fix your build system and no bug must show up.
...
SVN revision: 36622
2008-10-13 15:59:19 +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
Sebastian Dransfeld
43365e056b
source action patches from Fedor Gusev
...
SVN revision: 35519
2008-08-17 18:12:23 +00:00
Sebastian Dransfeld
97eed7e2dc
ignore
...
SVN revision: 35481
2008-08-14 17:57:32 +00:00
doursse
3f80f51a24
add ecore_x_window_shadow* api, use latest xcb_icccm api, remove trailing spaces, formatting
...
SVN revision: 35243
2008-07-29 09:00:17 +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