Mike Blumenkrantz
3866712f61
add fd handler example code for ssl connecting to a remote server in only 3 ecore calls
...
SVN revision: 52903
2010-09-29 19:12:43 +00:00
Vincent Torri
439168c6ff
tab------------
...
SVN revision: 52896
2010-09-29 17:03:38 +00:00
Vincent Torri
62bcf9643e
check the returned value of evas_engine_info_set()
...
SVN revision: 52894
2010-09-29 16:45:49 +00:00
Mike Blumenkrantz
c0593c571a
add more debug output, and even more with -DPRINT_LOTS_OF_DEBUG
...
SVN revision: 52891
2010-09-29 14:52:36 +00:00
Tom Hacohen
0a04c0084d
Ecore IMF: Fixed typo in canvas_set, (the string used is window_set instead of canvas_set) and fixed an allocation to use calloc instead of malloc. - Patch by Jihoon Kim.
...
SVN revision: 52885
2010-09-29 10:55:40 +00:00
Tom Hacohen
467abe35c7
Ecore imf: changed int -> Eina_Bool in ecore_imf_context_use_preedit_set.
...
SVN revision: 52884
2010-09-29 09:29:36 +00:00
Vincent Torri
72c7182a15
fix
...
SVN revision: 52882
2010-09-29 08:12:08 +00:00
Vincent Torri
e06c65f79d
NAME_MAX defined to 255 on sun (if not defined).
...
SVN revision: 52881
2010-09-29 06:37:56 +00:00
Vincent Torri
c4771c0127
include limits.h. Should acctually work with DSB, macosx and openindiana.
...
SVN revision: 52880
2010-09-29 05:41:09 +00:00
Mike Blumenkrantz
7af28b08ff
reorder some handshake events to hopefully reduce overhead slightly
...
SVN revision: 52878
2010-09-29 05:08:47 +00:00
Mike Blumenkrantz
75b958531d
compile fixes for sun compiler
...
SVN revision: 52877
2010-09-29 04:06:28 +00:00
Mike Blumenkrantz
f5f8a3c45d
DBG output
...
SVN revision: 52875
2010-09-29 03:52:32 +00:00
Gustavo Sverzut Barbieri
d93ac79c38
Dynamic choices in edje EXTERNALS.
...
Sometimes the options can just be known during runtime, like available
video engines for emotion.
This goes in now as it will avoid further API breaks, so before Edje 1.0
SVN revision: 52874
2010-09-29 03:01:17 +00:00
Gustavo Sverzut Barbieri
d724381684
new flags to external parameters.
...
These are yet-another hint, they are not enforced as documentation
already said, yet they will be useful for tools (ie: editje) to
explain to users if parameter will be set only once, or provides no
getter and such.
This will save future ABI breaks, that's why I want it in 1.0 :-)
SVN revision: 52873
2010-09-29 02:42:50 +00:00
Gustavo Sverzut Barbieri
abc87fd449
Adding a transition layout animation for edje box.
...
Perform an animation when changing the layout from an edje box.
By: Otavio Pontes <otavio@profusion.mobi>
-------
Sample EDC:
{{{
collections {
group {
name: "main";
min: 500 500;
max: 500 500;
parts {
part {
name: "bg";
type: RECT;
description {
color: 255 255 255 255;
rel1 { relative: 0.0 0.0; }
rel2 { relative: 1.0 1.0; }
}
}
part {
name: "box1";
type: BOX;
description {
state: "default" 0.0;
box {
layout: vertical;
padding: 0 0;
}
rel1 {
relative: 0.0 0.0;
}
rel2 {
relative: 1.0 1.0;
}
}
description {
state: "default" 0.1;
inherit: "default" 0.0;
box {
padding: 10 10;
layout: horizontal;
}
}
description {
state: "default" 0.2;
inherit: "default" 0.0;
box {
layout: vertical;
}
rel1 {
relative: 0.0 0.0;
offset: 100 100;
}
rel2 {
relative: 1.0 1.0;
}
}
box {
items {
item {
name: "rect1";
type: GROUP;
source: "grp_rect1";
weight: 1.0 1.0;
align: -1 -1;
}
item {
name: "rect2";
type: GROUP;
source: "grp_rect2";
weight: 1.0 1.0;
align: -1 -1;
}
}
}
}
}
programs {
program {
name: "change_layout";
signal: "mouse,clicked,1";
source: "box1";
action: STATE_SET "default" 0.1;
target: "box1";
transition: LINEAR 5.0;
after: "change_back";
}
program {
name: "change_back";
action: STATE_SET "default" 0.2;
target: "box1";
transition: LINEAR 5.0;
}
}
}
group {
name: "grp_rect1";
parts {
part {
name: "r1";
type: RECT;
description {
state: "default" 0.0;
color: 255 0 0 255;
rel1 { relative: 0.0 0.0; }
rel2 { relative: 1.0 1.0; }
}
description {
state: "default" 0.1;
inherit: "default" 0.0;
color: 255 0 0 255;
}
}
}
}
group {
name: "grp_rect2";
parts {
part {
name: "r2";
type: RECT;
description {
state: "default" 0.0;
color: 0 255 0 255;
rel1 { relative: 0.0 0.0; }
rel2 { relative: 1.0 1.0; }
}
description {
state: "default" 0.1;
color: 0 0 255 255;
}
}
}
}
}
}}}
SVN revision: 52871
2010-09-29 00:28:54 +00:00
Carsten Haitzler
0667809063
xrender engine default--
...
software_8_x11 default--
software_16_x11 default--
SVN revision: 52867
2010-09-28 22:43:24 +00:00
Carsten Haitzler
acb667de11
at least it builds now with eina_bool changes and randr changes.
...
woefully incomplete tho.
SVN revision: 52866
2010-09-28 22:37:04 +00:00
Mike Blumenkrantz
ac12734be2
switch to newer priority string stuff so gnutls devs stop being dicks to us
...
SVN revision: 52865
2010-09-28 21:59:13 +00:00
Vincent Torri
2e11e01f56
clean up clock_gettime detection
...
SVN revision: 52864
2010-09-28 21:24:16 +00:00
Lucas De Marchi
61a510d387
Fix clock_gettime detection in autotools
...
AC_CHECK_FUNCS checks for the existence of functions in the C standard
library, so we don't need it. Instead, we need to define
HAVE_CLOCK_GETTIME if the function was found inside the librt.
Moreover, in source file check if HAVE_CLOCK_GETTIME is defined rather
than of checking if it's 0.
SVN revision: 52863
2010-09-28 19:36:50 +00:00
Sebastian Dransfeld
8737d28c76
remove debug
...
SVN revision: 52858
2010-09-28 18:14:58 +00:00
Sebastian Dransfeld
843a885b4c
libraries should be in LIBS, not LDFLAGS
...
SVN revision: 52857
2010-09-28 18:12:15 +00:00
Sebastian Dransfeld
ed263df47e
ecore time is double
...
SVN revision: 52855
2010-09-28 17:53:15 +00:00
Mike Blumenkrantz
1bda1d90af
update examples to new api
...
SVN revision: 52847
2010-09-28 09:41:20 +00:00
Mike Blumenkrantz
7b3b888471
whoops comparison typo
...
SVN revision: 52846
2010-09-28 09:28:04 +00:00
Cedric BAIL
7088845157
* eio: add eio_file_move (completly asynchronous and non
...
blocking move). It first try a rename, then fallback to
an eio_file_copy + eio_file_unlink.
Small example on how to use it :
#include <Ecore.h>
#include <Eio.h>
static void
_test_done_cb(void *data)
{
printf("move done\n");
ecore_main_loop_quit();
}
static void
_test_error_cb(int error, void *data)
{
fprintf(stderr, "error: [%s]\n", strerror(error));
ecore_main_loop_quit();
}
int
main(int argc, char **argv)
{
Eio_File *cp;
if (argc != 3)
{
fprintf(stderr, "eio_cp source_file destination_file\n");
return -1;
}
ecore_init();
eio_init();
cp = eio_file_move(argv[1], argv[2],
NULL,
_test_done_cb,
_test_error_cb,
NULL);
ecore_main_loop_begin();
eio_shutdown();
ecore_shutdown();
return 0;
}
SVN revision: 52845
2010-09-28 09:05:51 +00:00
Gustavo Sverzut Barbieri
9f505cd3d9
export play_length as well.
...
SVN revision: 52841
2010-09-28 05:33:53 +00:00
Gustavo Sverzut Barbieri
bcba2b261b
emotion exports position, but don't use it from state description.
...
there should be some flags like RDONLY, RWONLY, RDWR, CONSTRUCTOR,
RUNTIME, but until there...
SVN revision: 52840
2010-09-28 05:26:48 +00:00
Carsten Haitzler
ae6922fbd0
make sure that at any point if gl barfs... abort then.
...
SVN revision: 52838
2010-09-28 04:13:28 +00:00
Mike Blumenkrantz
b64b0b3ac9
first part of ssl rerererewrite: split functions, move stuff out of prepare(), and add verification for gnutls clients
...
SVN revision: 52837
2010-09-28 03:16:08 +00:00
Christopher Michael
9916578131
And use Eina_Bool return values too.
...
SVN revision: 52833
2010-09-28 00:25:54 +00:00
Christopher Michael
b7b1a25c41
Fix edje entry callback to use Eina_Bool like ecore_imf is expecting.
...
SVN revision: 52832
2010-09-28 00:24:44 +00:00
Christopher Michael
1fe0153f77
Fix ecore to at least compile on systems that don't have clock_getting.
...
NB: Not sure if this is a correct fix or not, but at least svn is not
busted anymore.
SVN revision: 52831
2010-09-28 00:21:48 +00:00
Christopher Michael
07c74e3edf
Unbreak ecore building by using unset correctly....Spankies !!!
...
SVN revision: 52830
2010-09-28 00:10:53 +00:00
Lucas De Marchi
162070b8f5
Respect namespace
...
_ecore_loop_time -> _ecore_time_loop_time
SVN revision: 52825
2010-09-27 22:35:55 +00:00
Lucas De Marchi
d17de81175
Make ecore_time_get and friends use monotonic clock
...
Instead of relying on unix time, use a monotonic clock provided by
clock_gettime(). If a monotonic clock is not available, it will fallback
to CLOCK_REALTIME or unix time if neither is available.
The impact is that now it only makes sense to call ecore_time_get() or
ecore_time_loop_get() if the value retrieved is intended to be used as
relative to previous/posterior measurements. If an absolute value is
needed, the right function to call now is ecore_time_unix_get() which
will give the number of seconds since Jan 1st, 1970, 12:00AM.
SVN revision: 52824
2010-09-27 22:35:35 +00:00
Iván Briano
784ac71b15
Don't screw up script {} highlighting when there are several levels of {}
...
SVN revision: 52812
2010-09-27 21:12:09 +00:00
Carsten Haitzler
2d488b5d32
some fixes/improvements to emotion -> foound some buggers in xine -
...
tried making gst do it - should kind of work. i think gst is broken tho.
SVN revision: 52800
2010-09-27 10:11:52 +00:00
Mike Blumenkrantz
b04f0b0360
disable rehandshake support for now
...
SVN revision: 52792
2010-09-26 23:56:31 +00:00
Cedric BAIL
135a0f570a
* eio: add eio_file_copy (using splice when available and
...
fallback to mmap/write with huge tlb when not).
That what an eio_cp would look like :
#include <Ecore.h>
#include <Eio.h>
static void
_test_progress_cb(void *data, const Eio_Progress *info)
{
printf("%f (%zi / %zi octets)\n", info->percent, info->current, info->max);
}
static void
_test_done_cb(void *data)
{
printf("copy done\n");
ecore_main_loop_quit();
}
static void
_test_error_cb(int error, void *data)
{
fprintf(stderr, "error: [%s]\n", strerror(error));
ecore_main_loop_quit();
}
int
main(int argc, char **argv)
{
Eio_File *cp;
if (argc != 3)
{
fprintf(stderr, "eio_cp source_file destination_file\n");
return -1;
}
ecore_init();
eio_init();
cp = eio_file_copy(argv[1], argv[2],
_test_progress_cb,
_test_done_cb,
_test_error_cb,
NULL);
ecore_main_loop_begin();
eio_shutdown();
ecore_shutdown();
return 0;
}
SVN revision: 52787
2010-09-26 21:47:48 +00:00
Gustavo Sverzut Barbieri
ea831b3738
ecore_x: fix key-up events!
...
Bad cedric, no cookie for you! While merging r39505 introducing
Ecore_Input you had all the code to go through Xutf8LookupString(),
but its documentation says (man Xutf8LookupString):
{{{
Note
®To ensure proper input processing, it is essential that the
client pass only KeyPress events to XmbLookupString,
XwcLookupString and Xutf8LookupString. Their behavior when a
client passes a KeyRelease event is undefined.
}}}
Yeah, Xlib is quite stupid and this makes no sense.
As this just happens for UP events, it was unnoticed for a long time
(19 months) as most apps just handle DOWN events, as it gets X
keyboard repetition and all.
Thanks to Otavio Pontes that spotted this bug while doing some code
for EPhoto (that for some weird reason uses UP instead of DOWN
events).
SVN revision: 52786
2010-09-26 19:41:02 +00:00
Christopher Michael
da426bec51
Fix a couple of ecore_x_e_illume functions ... these Should be int.
...
SVN revision: 52785
2010-09-26 17:58:44 +00:00
Vincent Torri
29ec0433ab
int --> bool
...
Please review it. i don't have the courage to read
everything again
It should compile on linux (committed from windows, but
corrected at the same time on linux. Thank you, VirtualBox
devs !)
SVN revision: 52784
2010-09-26 17:49:05 +00:00
Christopher Michael
eb7c111fc9
Fix typo.
...
SVN revision: 52783
2010-09-26 16:30:14 +00:00
Cedric BAIL
801917565f
* evas: fix rendering of object with color (*,*,*,0)
...
and render_op != BLEND.
SVN revision: 52782
2010-09-26 16:10:59 +00:00
Vincent Torri
b3f24d8de4
[ecore-imf] more strict detection of exported functions on Windows
...
SVN revision: 52774
2010-09-26 06:00:14 +00:00
Vincent Torri
fbdfa54f82
int --> Eina_Bool
...
SVN revision: 52773
2010-09-26 05:42:56 +00:00
Carsten Haitzler
d1a1b62fa8
make fb default for *
...
SVN revision: 52772
2010-09-26 03:42:30 +00:00
Carsten Haitzler
80197823be
make fb engine default on linux too.
...
SVN revision: 52771
2010-09-26 03:39:18 +00:00
Chidambar 'ilLogict' Zinnoury
15dd911de3
From: Chidambar 'ilLogict' Zinnoury <illogict@online.fr>
...
Subject: [E-devel] [tentative patch] evas memleak when no callbacks
I'm seeing some memleaks while using Evas' buffer engine. After
investigation, it seems that evas_free does nothing and returns
immediately if the canvas has no callbacks, which is what happens with
the buffer engine.
The attached patch seems to do the trick.
However, as I don't know that much Evas' internals, I thought it'd be
better to ask whether it's correct or I'm mistaken before committing.
So please comment.
SVN revision: 52769
2010-09-26 02:27:01 +00:00