[E-devel] Bug in EDJE

2012-08-20 Thread Guilherme Silveira
Hi all,

I compiled edje's library with '--enable-fixed-point' and in my system I
use elm_config_password_show_last_set with TRUE, but it causes a strange
behavior, i looked in the code and found the follow..

In the edje_password_show_last_timeout_set function the variable
_edje_password_show_last_timeout is setted with conversion to EinaFp32p32
using FROM_DOUBLE. But when the timer is created (using ecore_timer_add)
was expected a double, so i made a patch that convert back the
_edje_password_show_last_timeout variable to double.

I think others parts of the code has the same problem, if i found something
else, i will create another patch.

-- 
Eng. Guilherme Silveira
E-mail: xgu...@gmail.com
Celular: (48) 9640-3883


patch
Description: Binary data
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Internationalization

2012-04-02 Thread Guilherme Silveira
I use theme because i created a lot of different layouts to each window
that i need..
so some static texts i put in the theme..

2012/3/29 Carsten Haitzler 

> On Thu, 29 Mar 2012 13:33:33 -0300 Guilherme Silveira 
> said:
>
> > Hi all,
> >
> > I have some text in edc file, but i need internationalization in the
> theme..
> > Any tip how can i do that?
> >
> > Regards,
>
> why do you need it "in theme" ? you have an application using the theme
> and it
> already has an internationalization system of its own - just use that and
> set
> the text for this part. then at least all your translations are in 1 place,
> done the same way by the same files & tools, not spread about.
>
> --
> - Codito, ergo sum - "I code, therefore I am" --
> The Rasterman (Carsten Haitzler)ras...@rasterman.com
>
>


-- 
Eng. Guilherme Silveira
E-mail: xgu...@gmail.com
Nextel: (48) 7811-8418 / ID: 85*227765
--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Internationalization

2012-03-29 Thread Guilherme Silveira
This not sound like good for me...
I will have a lot of work..
Thanks.. ;/

2012/3/29 michael bouchaud 

> You can't translate strings in the edc file for now. But you can call some
> edje_object_part_text_set with gettext stuff in c.
>
> 2012/3/29 Guilherme Silveira 
>
> > Hi all,
> >
> > I have some text in edc file, but i need internationalization in the
> > theme..
> > Any tip how can i do that?
> >
> > Regards,
> >
> > --
> > Guilherme Silveira
> > E-mail: xgu...@gmail.com
> >
> >
> --
> > This SF email is sponsosred by:
> > Try Windows Azure free for 90 days Click Here
> > http://p.sf.net/sfu/sfd2d-msazure
> > ___
> > enlightenment-devel mailing list
> > enlightenment-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> >
>
>
>
> --
> Michaël Bouchaud
>
> --
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>



-- 
Eng. Guilherme Silveira
E-mail: xgu...@gmail.com
Nextel: (48) 7811-8418 / ID: 85*227765
--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Internationalization

2012-03-29 Thread Guilherme Silveira
Hi all,

I have some text in edc file, but i need internationalization in the theme..
Any tip how can i do that?

Regards,

-- 
Guilherme Silveira
E-mail: xgu...@gmail.com
--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Bug using list item...

2012-03-13 Thread Guilherme Silveira
Hi All,

i think i found a bug using elm_list_item..

I didn't write a example, but i think i found the bug...
I need to change end content using elm_list_item_end_set, but i make a test
that set and get right after, but when i use elm_list_item_end_get it
return NULL..
I looked in the code and I saw the follow...
in elm_list_item_end_set my new end object is setted but when i call
elm_list_item_end_get, it->dummy_end is TRUE, so NULL is returned...
And never this variable become FALSE..
I think that's the problem...

Best regards,

-- 
Guilherme Silveira
E-mail: xgu...@gmail.com
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] #953: Changing style on clicked event

2012-02-13 Thread Guilherme Silveira
Yes..
It was fixed!! :)

2012/2/13 E-Trac 

> #953: Changing style on clicked event
> +-
>  Reporter:  xguiga@…|   Owner:  raster
> Type:  Bug |  Status:  closed
>  Priority:  Minor   |   Milestone:
> Component:  elementary  |  Resolution:  Fixed
>  Keywords:  |  Blocked By:
>  Blocking:  |
> +-
> Changes (by raster):
>
>  * status:  new => closed
>  * resolution:   => Fixed
>
>
> Comment:
>
>  oh and i think i fixed this already! i forgot to close this. :)
>
> --
> Ticket URL: <http://trac.enlightenment.org/e/ticket/953#comment:2>
> Enlightenment <http://www.enlightenment.org/>
> Enlightenment Project
>



-- 
Eng. Guilherme Silveira
E-mail: xgu...@gmail.com
Nextel: (48) 7811-8418 / ID: 85*227765
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Bug when changing style

2012-01-24 Thread Guilherme Silveira
Thanks... I'm going to update.. ;)

Regards...

2012/1/20 Carsten Haitzler 

> On Thu, 12 Jan 2012 08:35:40 -0200 Guilherme Silveira 
> said:
>
> f0xed. rev 67368.
>
> > Hi All,
> >
> > I think I found a bug when I changing button's style. The problem is
> when I
> > change style on clicked callback of button, i wrote a little test to
> > simulate that..
> > In my test I have a timer (1 sec) that it change style of a button
> (obj1),
> > and another button (obj2) that it only change when i click it!
> > The example is not big, and I'm going to paste here..
> >
> > O problem is when I change style throght clicked event, label and icon
> > becomes empty..
> >
> > -- code
> >
> > #include 
> > #include 
> > #include 
> >
> > static Ecore_Timer *test = NULL;
> > static Eina_Bool style1 = EINA_TRUE;
> > static Eina_Bool style2 = EINA_TRUE;
> >
> > static Eina_Bool
> > _change_style1(void *data)
> > {
> > Evas_Object *obj = (Evas_Object *) data;
> >
> > if (style1 == EINA_TRUE) {
> > elm_object_style_set(obj, "anchor");
> > } else {
> > elm_object_style_set(obj, "default");
> > }
> > style1 = !style1;
> >
> > return EINA_TRUE;
> > }
> >
> > static void
> > _change_style2(void *data, Evas_Object *obj, void *event_info)
> > {
> > if (style2 == EINA_TRUE) {
> > elm_object_style_set(obj, "anchor");
> > } else {
> > elm_object_style_set(obj, "default");
> > }
> > style2 = !style2;
> > }
> >
> > EAPI int
> > elm_main(int argc, char **argv)
> > {
> > Evas_Object *parent;
> > Evas_Object *obj1, *obj2;
> >
> > parent = elm_win_add(NULL, "tip05-gui", ELM_WIN_BASIC);
> > if (!parent) goto out;
> > evas_object_resize(parent, 350, 150);
> > evas_object_show(parent);
> > elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
> > elm_win_autodel_set(parent, EINA_TRUE);
> >
> > obj1 = elm_button_add(parent);
> > evas_object_resize(obj1, 100, 50);
> > evas_object_move(obj1, 50, 50);
> > elm_object_text_set(obj1, "Obj 1");
> > evas_object_show(obj1);
> >
> > obj2 = elm_button_add(parent);
> > evas_object_resize(obj2, 100, 50);
> > evas_object_move(obj2, 200, 50);
> > elm_object_text_set(obj2, "Obj 2");
> > evas_object_show(obj2);
> >
> > test = ecore_timer_add(1.0, _change_style1, obj2);
> > evas_object_smart_callback_add(obj1, "clicked", _change_style2,
> NULL);
> >
> > elm_run();
> > elm_shutdown();
> >
> > out:
> > evas_object_del(parent);
> >
> > return 0;
> > }
> > ELM_MAIN()
> >
> >
> > Regards,
> >
> > --
> > Guilherme Silveira
> > E-mail: xgu...@gmail.com
> >
> --
> > RSA(R) Conference 2012
> > Mar 27 - Feb 2
> > Save $400 by Jan. 27
> > Register now!
> > http://p.sf.net/sfu/rsa-sfdev2dev2
> > ___
> > enlightenment-devel mailing list
> > enlightenment-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> >
>
>
> --
> - Codito, ergo sum - "I code, therefore I am" --
> The Rasterman (Carsten Haitzler)ras...@rasterman.com
>
>


-- 
Eng. Guilherme Silveira
E-mail: xgu...@gmail.com
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Problem with list

2012-01-13 Thread Guilherme Silveira
Hi,

I didn't like to make a timer because my user can remain mouse pressed for
a time..
So i tried what you say about make list unfocusable, and it works, I make
unfocusable while a button is with focus..
and when I need I put focus back to the list..
I fix the problem with that, thanks for all.. :)

And Daniel, it's not a problem the item is selected, i just want to change
the focus.. ;)
And about the background, I will fix..
Thanks again man! ;)

Regards,

2012/1/13 Daniel Juyung Seo 

> here is one more comment.
> You do need to call size hint for bg to resize the window according to
> the size of bg.
>
> evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
>
> Note: do this before you call elm_win_resize_object_add().
>
> Thanks.
>
> Daniel Juyung Seo (SeoZ)
>
> On Fri, Jan 13, 2012 at 2:30 PM, Daniel Juyung Seo 
> wrote:
> > Yes, as Raster replied, this is tricky and you need to use timer as a
> > work around.
> > But here is one more important thing. Even though the focus is moved
> > to a button, list item is still highlighted. If you don't want it to
> > be highlighted, you also need to call elm_list_item_selected_set(item,
> > EINA_FALSE);
> > Thanks.
> >
> > Daniel Juyung Seo (SeoZ)
> >
> > On Fri, Jan 13, 2012 at 9:22 AM, Carsten Haitzler 
> wrote:
> >> On Thu, 12 Jan 2012 14:34:34 -0200 Guilherme Silveira 
> said:
> >>
> >> set the list to be not focusable. doing this kind of thing with focus
> as a
> >> result of actions on 1 widget to set focus on another is ALWAYS bound
> to have
> >> conflicts. your alternative is to set the focus in a timer (ie wait 0.2
> sec
> >> then focus other button hoping that list has finished its human
> interactions by
> >> then). you are at the mercy of policies that are flexible and may
> change from
> >> desktop to touchscreen to something else.
> >>
> >>> Hi All,
> >>>
> >>> I have a problem with lists..
> >>> In my list has a lot of items, I would like when I press Enter or
> double
> >>> click on item of the list, a button gain focus.
> >>> To do that I connect my callback function into "activated" event..
> when I
> >>> use enter everything is right, but when I use double click some
> problems
> >>> appears.
> >>>
> >>> The callback is called when I PRESS item on second time, so when I
> release
> >>> (mouse up in the second time) the focus is setted to list again...
> >>> So I can set focus to another button, but when I release mouse the
> focus
> >>> back to list..
> >>>
> >>> I wrote a simple example to demonstrate that..
> >>>
> >>> Try select item of list e press ENTER.. Ok everything works fine..
> >>> But now, try double click into an item of list..
> >>> Better of that, in the second time, don't release the mouse button,
> you can
> >>> see that focus is right, and when you release, the focus come back to
> the
> >>> list.
> >>>
> >>> #include 
> >>> #include 
> >>>
> >>> static Evas_Object *button;
> >>>
> >>> static void
> >>> _list_activated(void *data, Evas_Object *obj, void *event_info)
> >>> {
> >>> elm_object_focus_set(button, EINA_TRUE);
> >>> }
> >>>
> >>> EAPI int
> >>> elm_main(int argc, char **argv)
> >>> {
> >>> Evas_Object *parent;
> >>> Evas_Object *bg;
> >>> Evas_Object *list;
> >>>
> >>> parent = elm_win_add(NULL, "tip05-gui", ELM_WIN_BASIC);
> >>> if (!parent) goto out;
> >>> elm_win_focus_highlight_enabled_set(parent, EINA_TRUE);
> >>> evas_object_show(parent);
> >>> elm_policy_set(ELM_POLICY_QUIT,
> ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
> >>> elm_win_autodel_set(parent, EINA_TRUE);
> >>>
> >>> bg = elm_bg_add(parent);
> >>> elm_win_resize_object_add(parent, bg);
> >>> evas_object_show(bg);
> >>> evas_object_resize(parent, 350, 250);
> >>>
> >>>     button = elm_button_add(parent);
> >>> evas_object_resize(button, 100, 50);
> >>> evas_object_move(button, 50, 50);
> >>> elm_object_text_set(button, "Button");
> >>> evas_object_show(button);
>

Re: [E-devel] Bug when changing style

2012-01-13 Thread Guilherme Silveira
Hi,
Ok, a will open a bug..
And about my code, I re-read the documentation and it's clear what happens
with this function..
I will fix my code, thanks about the suggest and the bug..

Regards,

2012/1/13 Daniel Juyung Seo 

> This smells like a bug. Oh yeah it's a bug!
> Sorry I don't have time at the moment to dig this out but you can also
> raise ticket for bug reporting.
> http://trac.enlightenment.org/e/report
> Anyhow, thank you for reporting.
>
> Btw, I have one comment on your code.
> After you do elm_shutdown() you're calling evas_object_del(parent).
> But you don't need to.
> Because
> 1) you already called elm_win_autodel_set(parent, EINA_TRUE); so
> parent will be automatically deleted when it gets "delete,request"
> signal.
> 2) you already did elm_shutdown() so evas objects are already freed
> from the memory.
>
> Thanks.
>
> Daniel Juyung Seo (SeoZ)
>
>
> On Thu, Jan 12, 2012 at 7:35 PM, Guilherme Silveira 
> wrote:
> > Hi All,
> >
> > I think I found a bug when I changing button's style. The problem is
> when I
> > change style on clicked callback of button, i wrote a little test to
> > simulate that..
> > In my test I have a timer (1 sec) that it change style of a button
> (obj1),
> > and another button (obj2) that it only change when i click it!
> > The example is not big, and I'm going to paste here..
> >
> > O problem is when I change style throght clicked event, label and icon
> > becomes empty..
> >
> > -- code
> >
> > #include 
> > #include 
> > #include 
> >
> > static Ecore_Timer *test = NULL;
> > static Eina_Bool style1 = EINA_TRUE;
> > static Eina_Bool style2 = EINA_TRUE;
> >
> > static Eina_Bool
> > _change_style1(void *data)
> > {
> >Evas_Object *obj = (Evas_Object *) data;
> >
> >if (style1 == EINA_TRUE) {
> >elm_object_style_set(obj, "anchor");
> >} else {
> >elm_object_style_set(obj, "default");
> >}
> >style1 = !style1;
> >
> >return EINA_TRUE;
> > }
> >
> > static void
> > _change_style2(void *data, Evas_Object *obj, void *event_info)
> > {
> >if (style2 == EINA_TRUE) {
> >elm_object_style_set(obj, "anchor");
> >} else {
> >elm_object_style_set(obj, "default");
> >}
> >style2 = !style2;
> > }
> >
> > EAPI int
> > elm_main(int argc, char **argv)
> > {
> >Evas_Object *parent;
> >Evas_Object *obj1, *obj2;
> >
> >parent = elm_win_add(NULL, "tip05-gui", ELM_WIN_BASIC);
> >if (!parent) goto out;
> >evas_object_resize(parent, 350, 150);
> >evas_object_show(parent);
> >elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
> >elm_win_autodel_set(parent, EINA_TRUE);
> >
> >obj1 = elm_button_add(parent);
> >evas_object_resize(obj1, 100, 50);
> >evas_object_move(obj1, 50, 50);
> >elm_object_text_set(obj1, "Obj 1");
> >evas_object_show(obj1);
> >
> >obj2 = elm_button_add(parent);
> >evas_object_resize(obj2, 100, 50);
> >evas_object_move(obj2, 200, 50);
> >elm_object_text_set(obj2, "Obj 2");
> >evas_object_show(obj2);
> >
> >test = ecore_timer_add(1.0, _change_style1, obj2);
> >evas_object_smart_callback_add(obj1, "clicked", _change_style2, NULL);
> >
> >elm_run();
> >elm_shutdown();
> >
> > out:
> >evas_object_del(parent);
> >
> >return 0;
> > }
> > ELM_MAIN()
> >
> >
> > Regards,
> >
> > --
> > Guilherme Silveira
> > E-mail: xgu...@gmail.com
> >
> ------
> > RSA(R) Conference 2012
> > Mar 27 - Feb 2
> > Save $400 by Jan. 27
> > Register now!
> > http://p.sf.net/sfu/rsa-sfdev2dev2
> > ___
> > enlightenment-devel mailing list
> > enlightenment-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>
>
> --
> RSA(R) Conference 2012
> Mar 27 - Feb 2
> Save $400 by Jan. 27
> Register now!
> http://p.sf.net/sfu/rsa-sfdev2dev2
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>



-- 
Eng. Guilherme Silveira
E-mail: xgu...@gmail.com
Nextel: (48) 7811-8418 / ID: 85*227765
--
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Problem with list

2012-01-12 Thread Guilherme Silveira
Hi All,

I have a problem with lists..
In my list has a lot of items, I would like when I press Enter or double
click on item of the list, a button gain focus.
To do that I connect my callback function into "activated" event.. when I
use enter everything is right, but when I use double click some problems
appears.

The callback is called when I PRESS item on second time, so when I release
(mouse up in the second time) the focus is setted to list again...
So I can set focus to another button, but when I release mouse the focus
back to list..

I wrote a simple example to demonstrate that..

Try select item of list e press ENTER.. Ok everything works fine..
But now, try double click into an item of list..
Better of that, in the second time, don't release the mouse button, you can
see that focus is right, and when you release, the focus come back to the
list.

#include 
#include 

static Evas_Object *button;

static void
_list_activated(void *data, Evas_Object *obj, void *event_info)
{
elm_object_focus_set(button, EINA_TRUE);
}

EAPI int
elm_main(int argc, char **argv)
{
Evas_Object *parent;
Evas_Object *bg;
Evas_Object *list;

parent = elm_win_add(NULL, "tip05-gui", ELM_WIN_BASIC);
if (!parent) goto out;
elm_win_focus_highlight_enabled_set(parent, EINA_TRUE);
evas_object_show(parent);
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
elm_win_autodel_set(parent, EINA_TRUE);

bg = elm_bg_add(parent);
elm_win_resize_object_add(parent, bg);
evas_object_show(bg);
evas_object_resize(parent, 350, 250);

button = elm_button_add(parent);
evas_object_resize(button, 100, 50);
evas_object_move(button, 50, 50);
elm_object_text_set(button, "Button");
evas_object_show(button);

list = elm_list_add(parent);
evas_object_resize(list, 100, 200);
evas_object_move(list, 200, 50);
evas_object_show(list);

elm_list_item_append(list, "name 1", NULL, NULL, NULL, NULL);
elm_list_item_append(list, "name 2", NULL, NULL, NULL, NULL);
elm_list_item_append(list, "name 3", NULL, NULL, NULL, NULL);
elm_list_go(list);

evas_object_smart_callback_add(list, "activated", _list_activated,
NULL);

elm_run();
elm_shutdown();

out:
evas_object_del(parent);

return 0;
}
ELM_MAIN()


-- 
Guilherme Silveira
E-mail: xgu...@gmail.com
--
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Bug when changing style

2012-01-12 Thread Guilherme Silveira
Hi All,

I think I found a bug when I changing button's style. The problem is when I
change style on clicked callback of button, i wrote a little test to
simulate that..
In my test I have a timer (1 sec) that it change style of a button (obj1),
and another button (obj2) that it only change when i click it!
The example is not big, and I'm going to paste here..

O problem is when I change style throght clicked event, label and icon
becomes empty..

-- code

#include 
#include 
#include 

static Ecore_Timer *test = NULL;
static Eina_Bool style1 = EINA_TRUE;
static Eina_Bool style2 = EINA_TRUE;

static Eina_Bool
_change_style1(void *data)
{
Evas_Object *obj = (Evas_Object *) data;

if (style1 == EINA_TRUE) {
elm_object_style_set(obj, "anchor");
} else {
elm_object_style_set(obj, "default");
}
style1 = !style1;

return EINA_TRUE;
}

static void
_change_style2(void *data, Evas_Object *obj, void *event_info)
{
if (style2 == EINA_TRUE) {
elm_object_style_set(obj, "anchor");
} else {
elm_object_style_set(obj, "default");
}
style2 = !style2;
}

EAPI int
elm_main(int argc, char **argv)
{
Evas_Object *parent;
Evas_Object *obj1, *obj2;

parent = elm_win_add(NULL, "tip05-gui", ELM_WIN_BASIC);
if (!parent) goto out;
evas_object_resize(parent, 350, 150);
evas_object_show(parent);
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
elm_win_autodel_set(parent, EINA_TRUE);

obj1 = elm_button_add(parent);
evas_object_resize(obj1, 100, 50);
evas_object_move(obj1, 50, 50);
elm_object_text_set(obj1, "Obj 1");
evas_object_show(obj1);

obj2 = elm_button_add(parent);
evas_object_resize(obj2, 100, 50);
evas_object_move(obj2, 200, 50);
elm_object_text_set(obj2, "Obj 2");
evas_object_show(obj2);

test = ecore_timer_add(1.0, _change_style1, obj2);
evas_object_smart_callback_add(obj1, "clicked", _change_style2, NULL);

elm_run();
elm_shutdown();

out:
    evas_object_del(parent);

return 0;
}
ELM_MAIN()


Regards,

-- 
Guilherme Silveira
E-mail: xgu...@gmail.com
--
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] ecore_main_loop_glib_integrate (leak)

2011-12-20 Thread Guilherme Silveira
Hi,
Yes, in blackfin the problem was fixed, any leak occurs in our little test..
I saw your commit and I have the same opinion about static_mutext, it's not
clear in the documentation..

Thanks man!!

Regards,

2011/12/20 Carsten Haitzler 

> On Thu, 15 Dec 2011 13:30:07 -0200 Guilherme Silveira 
> said:
>
> can you try this patch:
>
> http://yourpaste.net/9939/
>
> it doesnt seem to cause any bugs.crashes and it may fix the leak.
>
> > I'm trying to help Benatto, and I found some strange things...
> >
> > When you call ecore_main_loop_glib_integrate(), it change main loop
> > function to _ecore_glib_select (ecore_glib.c) instead of select (default
> > one). I made some experiments and I saw when comment second line of
> > function:
> > GMutex *mutex = g_static_mutex_get_mutex(&lock);
> > the leak stop...
> > But We use glib a long time in blackfin, and I ran the follow test:
> >
> > #include 
> > #include 
> >
> > int
> > main(void)
> > {
> > for (;;) {
> > GStaticMutex lock = G_STATIC_MUTEX_INIT;
> > GMutex *mutex = g_static_mutex_get_mutex(&lock);
> > }
> >
> > return 0;
> > }
> >
> > Any leak occurs, I hope this experiments help someone to help us..
> >
> > Regards,
> >
> > 2011/12/14 Paulo Benatto 
> >
> > > Hi all,
> > >
> > > I have a doubt about ecore_main_loop_glib_integrate() with
> > > ecore_timer_add(). I did the example below, I compiled it to blackfin
> and
> > > x86. My problem is, when I run in blackfin occurs a memory leak, in
> x86 is
> > > ok (without leak). Is something wrong with my code? Any tips? I'm
> going to
> > > study ecore code. Thanks.
> > >
> > > #include 
> > > #include 
> > >
> > > static Ecore_Timer *update_datetime_timer = NULL;
> > >
> > > static Eina_Bool
> > > _update_datetime_cb(void *data)
> > > {
> > >return EINA_TRUE;
> > > }
> > >
> > > EAPI int
> > > elm_main(int argc, char **argv)
> > > {
> > >(void)argc;
> > >(void)argv;
> > >
> > >g_type_init();
> > >ecore_main_loop_glib_integrate();
> > >ecore_event_init();
> > >
> > >update_datetime_timer = ecore_timer_add(0.01, _update_datetime_cb,
> > > NULL);
> > >
> > >elm_run();
> > >
> > >elm_shutdown();
> > >
> > >return 0;
> > > }
> > > ELM_MAIN()
> > >
> > > Regards,
> > >
> > > --
> > > Paulo Leonardo Benatto, patito
> > > "the fear of being free, makes you proud of being a slave"
> > >
> > >
> --
> > > Cloud Computing - Latest Buzzword or a Glimpse of the Future?
> > > This paper surveys cloud computing today: What are the benefits?
> > > Why are businesses embracing it? What are its payoffs and pitfalls?
> > > http://www.accelacomm.com/jaw/sdnl/114/51425149/
> > > ___
> > > enlightenment-devel mailing list
> > > enlightenment-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> > >
> >
> >
> >
> > --
> > Eng. Guilherme Silveira
> > E-mail: xgu...@gmail.com
> > Nextel: (48) 7811-8418 / ID: 85*227765
> >
> --
> > 10 Tips for Better Server Consolidation
> > Server virtualization is being driven by many needs.
> > But none more important than the need to reduce IT complexity
> > while improving strategic productivity.  Learn More!
> > http://www.accelacomm.com/jaw/sdnl/114/51507609/
> > ___
> > enlightenment-devel mailing list
> > enlightenment-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> >
>
>
> --
> - Codito, ergo sum - "I code, therefore I am" --
> The Rasterman (Carsten Haitzler)ras...@rasterman.com
>
>


-- 
Eng. Guilherme Silveira
E-mail: xgu...@gmail.com
Nextel: (48) 7811-8418 / ID: 85*227765
--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] ecore_main_loop_glib_integrate (leak)

2011-12-15 Thread Guilherme Silveira
I'm trying to help Benatto, and I found some strange things...

When you call ecore_main_loop_glib_integrate(), it change main loop
function to _ecore_glib_select (ecore_glib.c) instead of select (default
one). I made some experiments and I saw when comment second line of
function:
GMutex *mutex = g_static_mutex_get_mutex(&lock);
the leak stop...
But We use glib a long time in blackfin, and I ran the follow test:

#include 
#include 

int
main(void)
{
for (;;) {
GStaticMutex lock = G_STATIC_MUTEX_INIT;
GMutex *mutex = g_static_mutex_get_mutex(&lock);
}

return 0;
}

Any leak occurs, I hope this experiments help someone to help us..

Regards,

2011/12/14 Paulo Benatto 

> Hi all,
>
> I have a doubt about ecore_main_loop_glib_integrate() with
> ecore_timer_add(). I did the example below, I compiled it to blackfin and
> x86. My problem is, when I run in blackfin occurs a memory leak, in x86 is
> ok (without leak). Is something wrong with my code? Any tips? I'm going to
> study ecore code. Thanks.
>
> #include 
> #include 
>
> static Ecore_Timer *update_datetime_timer = NULL;
>
> static Eina_Bool
> _update_datetime_cb(void *data)
> {
>return EINA_TRUE;
> }
>
> EAPI int
> elm_main(int argc, char **argv)
> {
>(void)argc;
>(void)argv;
>
>g_type_init();
>ecore_main_loop_glib_integrate();
>ecore_event_init();
>
>update_datetime_timer = ecore_timer_add(0.01, _update_datetime_cb,
> NULL);
>
>elm_run();
>
>elm_shutdown();
>
>return 0;
> }
> ELM_MAIN()
>
> Regards,
>
> --
> Paulo Leonardo Benatto, patito
> "the fear of being free, makes you proud of being a slave"
>
> --
> Cloud Computing - Latest Buzzword or a Glimpse of the Future?
> This paper surveys cloud computing today: What are the benefits?
> Why are businesses embracing it? What are its payoffs and pitfalls?
> http://www.accelacomm.com/jaw/sdnl/114/51425149/
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>



-- 
Eng. Guilherme Silveira
E-mail: xgu...@gmail.com
Nextel: (48) 7811-8418 / ID: 85*227765
--
10 Tips for Better Server Consolidation
Server virtualization is being driven by many needs.  
But none more important than the need to reduce IT complexity 
while improving strategic productivity.  Learn More! 
http://www.accelacomm.com/jaw/sdnl/114/51507609/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Problem with disabled button

2011-11-29 Thread Guilherme Silveira
;default", 0.0);
>  }
>  }
>  }
> @@ -891,8 +890,6 @@
>  }
>  description { state: "disabled" 0.0;
>  inherit: "default" 0.0;
> - color: 0 0 0 128;
> - color3: 0 0 0 0;
>  }
>  description { state: "disabled_visible" 0.0;
>  inherit: "default" 0.0;
> @@ -1024,8 +1021,12 @@
>  new Float:vl;
>  get_state(PART:"elm.swallow.content", st, 30, vl);
>  if (!strcmp(st, "icononly"))
> - set_state(PART:"elm.swallow.content", "visible", 0.0);
> - set_state(PART:"elm.text", "visible", 0.0);
> + set_state(PART:"elm.swallow.content", "visible", 0.0);
> + get_state(PART:"elm.text", st, 30, vl);
> + if (!strcmp(st, "disabled") || (!strcmp(st, "disabled_visible")))
> + set_state(PART:"elm.text", "disabled_visible", 0.0);
> + else
> + set_state(PART:"elm.text", "visible", 0.0);
>  }
>  }
>  program { name: "text_hide";
> @@ -1038,6 +1039,11 @@
>  if (!strcmp(st, "visible"))
>  set_state(PART:"elm.swallow.content", "icononly", 0.0);
>  set_state(PART:"elm.text", "default", 0.0);
> + get_state(PART:"elm.text", st, 30, vl);
> + if (!strcmp(st, "default") || (!strcmp(st, "visible")))
> + set_state(PART:"elm.text", "default", 0.0);
> + else
> + set_state(PART:"elm.text", "disabled", 0.0);
>  }
>  }
>  program { name: "icon_show";
> @@ -1062,43 +1068,35 @@
>  program { name: "disable";
>  signal: "elm,state,disabled";
>  source: "elm";
> - action: STATE_SET "disabled" 0.0;
> - target: "button_image";
> - target: "over1";
> - target: "over2";
> - target: "disabler";
> - after: "disable_text";
> - }
> - program { name: "disable_text";
>  script {
>  new st[31];
>  new Float:vl;
> + set_state(PART:"button_image", "disabled", 0.0);
> + set_state(PART:"over1", "disabled", 0.0);
> + set_state(PART:"over2", "disabled", 0.0);
> + set_state(PART:"disabler", "disabled", 0.0);
>  get_state(PART:"elm.text", st, 30, vl);
> - if (!strcmp(st, "visible"))
> - set_state(PART:"elm.text", "disabled_visible", 0.0);
> + if (!strcmp(st, "visible") || !strcmp(st, "disabled_visible"))
> + set_state(PART:"elm.text", "disabled_visible", 0.0);
>  else
> - set_state(PART:"elm.text", "disabled", 0.0);
> + set_state(PART:"elm.text", "disabled", 0.0);
>  }
>  }
>  program { name: "enable";
>  signal: "elm,state,enabled";
>  source: "elm";
> - action: STATE_SET "default" 0.0;
> - target: "button_image";
> - target: "over1";
> - target: "over2";
> - target: "disabler";
> - after: "enable_text";
> - }
> - program { name: "enable_text";
>  script {
>  new st[31];
>  new Float:vl;
> + set_state(PART:"button_image", "visible", 0.0);
> + set_state(PART:"over1", "visible", 0.0);
> + set_state(PART:"over2", "visible", 0.0);
> + set_state(PART:"disabler", "visible", 0.0);
>  get_state(PART:"elm.text", st, 30, vl);
> - if (!strcmp(st, "disabled_visible"))
> - set_state(PART:"elm.text", "visible", 0.0);
> + if (!strcmp(st, "visible") || !strcmp(st, "disabled_visible"))
> + set_state(PART:"elm.text", "visible", 0.0);
>  else
> - set_state(PART:"elm.text", "default", 0.0);
> + set_state(PART:"elm.text", "default", 0.0);
>  }
>  }
>  }
> 
> -Regards, Hermet-
>
> -Original Message-
> From: "Guilherme Silveira"<xgu...@gmail.com>
> To: "Enlightenment developer list"&
> lt;enlightenment-devel@lists.sourceforge.net>
> Cc:
> Sent: 11-11-26(토) 03:40:11
> Subject: [E-devel] Problem with disabled button
> Hi all,
> I'm here again, for now I have problem with button..
> My button was disabled using elm_object_disabled_set, but after some time I
> need change the text calling elm_object_text_set..
> What happened that my button is disabled, but text is not.
> I looked in the code, and found in elm_button.c, function
> _elm_button_label_set that is emitted "elm,state,text,visible" what become
> visible just text (i think it's not right), but even calling
> elm_object_disabled_set after call elm_object_text_set the text doesn't
> seems ok...
> In elm_widget.c, function elm_widget_disabled_set it's verified:
> if (sd->disabled == disabled) return;
> So any change happened.
> --
> Guilherme Silveira
> E-mail: xgu...@gmail.com
>
> --
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>
> --
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>



-- 
Eng. Guilherme Silveira
E-mail: xgu...@gmail.com
Nextel: (48) 7811-8418 / ID: 85*227765
--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Problem with disabled button

2011-11-25 Thread Guilherme Silveira
Hi all,

I'm here again, for now I have problem with button..
My button was disabled using elm_object_disabled_set, but after some time I
need change the text calling elm_object_text_set..
What happened that my button is disabled, but text is not.
I looked in the code, and found in elm_button.c, function
_elm_button_label_set that is emitted "elm,state,text,visible" what become
visible just text (i think it's not right), but even calling
elm_object_disabled_set after call elm_object_text_set the text doesn't
seems ok...
In elm_widget.c, function elm_widget_disabled_set it's verified:
if (sd->disabled == disabled) return;
So any change happened.

-- 
Guilherme Silveira
E-mail: xgu...@gmail.com
--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Problem with list

2011-11-23 Thread Guilherme Silveira
Hi,
I have some problem... I have a list, each item has a icon, but I would
like that each icon was leaning (no spaces) with each other..
I made some changes in the theme to do that, but I found a problem.
The function _fix_items (inside elm_list.c) always is called and follow
code is executed:
  mw = mh = -1;
  elm_coords_finger_size_adjust(1, &mw, 1, &mh);
  edje_object_size_min_restricted_calc(VIEW(it), &mw, &mh, mw, mh);
  elm_coords_finger_size_adjust(1, &mw, 1, &mh);
  evas_object_size_hint_min_set(VIEW(it), mw, mh);
  evas_object_show(VIEW(it));
The efl always change my size_hint_mim to the value bigger than my icon
size, so spaces will add between icons...
How can I fix this!?

Regards,

-- 
Guilherme Silveira
E-mail: xgu...@gmail.com
--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Problem with framebuffer

2011-11-22 Thread Guilherme Silveira
Thanks man! ;)

2011/11/22 Carsten Haitzler 

> On Mon, 21 Nov 2011 16:28:06 -0200 Gustavo Sverzut Barbieri
>  said:
>
> > On Mon, Nov 21, 2011 at 1:51 PM, Guilherme Silveira 
> wrote:
> > > Hi all,
> > >
> > > I'm using framebuffer and I'm trying to use an entry, but i can't edit
> it,
> > > after call
> > > elm_entry_editable_set<
> http://docs.enlightenment.org/auto/elementary/group__Entry.html#gafbb9b73e2710cd927e3af3c615ada5ac
> >the
> > > same problem occurs.. I was looking for this problem in the code, and i
> > > found something.. In elementary, file elm_widget.c, function
> _parent_focus
> > > has follow condition:
> > > if (sd->top_win_focused)
> > > I debug and saw this value is false, so the focus can't setted..
> > > Why this variable is false? I found in ecore a function that emit some
> > > signals and make this variable true!
> > > In elm_win.c is connected to focus event using
> > > ecore_evas_callback_focus_in_set function, but the callback function is
> > > never called in ecore_evas_fb..
> > >
> > > Do you have some ideia to fix this problem?
> >
> > Should be a bug as evas_focus_in() is never called... likely the
> > single-window displays are not calling it... but they should.
> >
> > I can't look it now, but likely ecore_evas_fb_new() implementation is
> > the way to place it.
>
> fixed now in svn - not just for fb engine but for others too.
>
> --
> - Codito, ergo sum - "I code, therefore I am" --
> The Rasterman (Carsten Haitzler)ras...@rasterman.com
>
>
>
> --
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>


-- 
Guilherme Silveira
E-mail: xgu...@gmail.com
--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Problem with framebuffer

2011-11-21 Thread Guilherme Silveira
Hi all,

I'm using framebuffer and I'm trying to use an entry, but i can't edit it,
after call 
elm_entry_editable_set<http://docs.enlightenment.org/auto/elementary/group__Entry.html#gafbb9b73e2710cd927e3af3c615ada5ac>the
same problem occurs..
I was looking for this problem in the code, and i found something..
In elementary, file elm_widget.c, function _parent_focus has follow
condition:
if (sd->top_win_focused)
I debug and saw this value is false, so the focus can't setted..
Why this variable is false? I found in ecore a function that emit some
signals and make this variable true!
In elm_win.c is connected to focus event using
ecore_evas_callback_focus_in_set function, but the callback function is
never called in ecore_evas_fb..

Do you have some ideia to fix this problem?

Regards,

-- 
Guilherme Silveira
E-mail: xgu...@gmail.com
--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Problem with framebuffer and tslib

2011-11-18 Thread Guilherme Silveira
Hi all,

I'm cross-compiling EFL to blackfin, and I'm using framebuffer and tslib to
touch screen...
Some days ago I was using release version, but told me to update to trunk
version... Now I'm having some problems with touch..
I verified in the code my problem...

I put some debugs and I saw that ecore was receiving events from tslib, but
this events have not arrived in evas lib.
In the file ecore_input_evas/ecore_input_evas.c has a function called by
_ecore_event_evas_mouse_button, this function is executed and should emit
event to evas, but in the beginning of function we have follow verification:
lookup = _ecore_event_window_match(e->event_window);
if (!lookup) return ECORE_CALLBACK_RENEW;
What happened that e->event_window is NULL, so lookup var is NULL too, so
the function is returned!
For this reason the event doesn't arrive in the evas. I tried to know why
event_window was NULL...
I look up for a code that create variable e (Ecore_Event_Mouse_Button type)
and I found this file ecore_fb/ecore_fb_ts.c in the function
_ecore_fb_ts_fd_handler
and the member event_window of Ecore_Event_Mouse_Button was not setted...
I looked in the release version what was changed, and this code was very
similar...
The big difference was in this commit
http://trac.enlightenment.org/e/browser/trunk/ecore/src/lib/ecore_evas/ecore_evas_fb.c?rev=64447
the function evas_event_feed_mouse_down is no longer called in the
_ecore_evas_event_mouse_button_down function, and how the event to be
emitted depends of _ecore_event_evas_mouse_button function it doesn't
called anymore.

Regards,

-- 
Guilherme Santos
E-mail: xgu...@gmail.com
--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel