Re: [E-devel] E SVN: devilhorns trunk/e/src/bin
On Tue, 25 Aug 2009, Enlightenment SVN wrote: Log: Use simpler method for testing disabled state vs what we want it to be. you should also look at and clean those kind of tests in ecore_x and ecore_evas. They are numerous :) Vincent Author: devilhorns Date: 2009-08-25 16:06:40 -0700 (Tue, 25 Aug 2009) New Revision: 41996 Modified: trunk/e/src/bin/e_widget.c Modified: trunk/e/src/bin/e_widget.c === --- trunk/e/src/bin/e_widget.c 2009-08-25 23:04:22 UTC (rev 41995) +++ trunk/e/src/bin/e_widget.c 2009-08-25 23:06:40 UTC (rev 41996) @@ -426,8 +426,7 @@ e_widget_disabled_set(Evas_Object *obj, int disabled) { API_ENTRY return; - if (((sd-disabled) (disabled)) || - ((!sd-disabled) (!disabled))) return; + if (sd-disabled == disabled) return; sd-disabled = disabled; if (sd-focused) { -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ enlightenment-svn mailing list enlightenment-...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-svn -- Ce message a été vérifié par MailScanner pour des virus ou des polluriels et rien de suspect n'a été trouvé. Message délivré par le serveur de messagerie de l'Université d'Evry. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: devilhorns trunk/e/src/bin
Vincent Torri wrote: On Tue, 25 Aug 2009, Enlightenment SVN wrote: Log: Use simpler method for testing disabled state vs what we want it to be. you should also look at and clean those kind of tests in ecore_x and ecore_evas. They are numerous :) Vincent Sounds like a good idea. I'll add that to me todo list. Hopefully I can get to it before I am 90 years old :) dh -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: quaker IN trunk/TMP/st/elementary: . src/lib
Enlightenment SVN wrote: Log: Add some checks etc to separator widget Author: quaker Date: 2009-08-26 00:46:11 -0700 (Wed, 26 Aug 2009) New Revision: 42007 snip @@ -72,15 +73,18 @@ elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) { Widget_Data *wd = elm_widget_data_get(obj); + if (!wd) return; horizontal = !!horizontal; if (wd-horizontal == horizontal) return; wd-horizontal = horizontal; _theme_hook(obj); + _sizing_eval(obj); } Just an fyi...this above entry is a bit redundant. _theme_hook already calls sizing_eval so basically we are calling sizing_eval twice now. dh -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: devilhorns trunk/TMP/st/elementary/src/lib
On Wed, 26 Aug 2009, Enlightenment SVN wrote: Log: Don't calloc a toolbar item if elm_widget_data_get returns NULL. Slightly better trapping(s). Author: devilhorns Date: 2009-08-26 07:34:55 -0700 (Wed, 26 Aug 2009) New Revision: 42012 Modified: trunk/TMP/st/elementary/src/lib/elm_toolbar.c Modified: trunk/TMP/st/elementary/src/lib/elm_toolbar.c === --- trunk/TMP/st/elementary/src/lib/elm_toolbar.c 2009-08-26 14:29:18 UTC (rev 42011) +++ trunk/TMP/st/elementary/src/lib/elm_toolbar.c 2009-08-26 14:34:55 UTC (rev 42012) @@ -265,9 +265,10 @@ { Widget_Data *wd = elm_widget_data_get(obj); Evas_Coord mw, mh; - Elm_Toolbar_Item *it = calloc(1, sizeof(Elm_Toolbar_Item)); + Elm_Toolbar_Item *it; - if ((!it) || (!wd)) return NULL; + if (!wd) return NULL; + it = = calloc(1, sizeof(Elm_Toolbar_Item)); why don't you check if it is NULL or not ? Vincent wd-items = eina_list_append(wd-items, it); it-obj = obj; it-label = eina_stringshare_add(label); @@ -332,7 +333,7 @@ Widget_Data *wd = elm_widget_data_get(it-obj); Evas_Object *obj2 = it-obj; - if (!wd) return; + if ((!wd) || (!it)) return; wd-items = eina_list_remove(wd-items, it); eina_stringshare_del(it-label); if (it-icon) evas_object_del(it-icon); -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ enlightenment-svn mailing list enlightenment-...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-svn -- Ce message a été vérifié par MailScanner pour des virus ou des polluriels et rien de suspect n'a été trouvé. Message délivré par le serveur de messagerie de l'Université d'Evry. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: devilhorns trunk/TMP/st/elementary/src/lib
Vincent Torri wrote: On Wed, 26 Aug 2009, Enlightenment SVN wrote: Log: Don't calloc a toolbar item if elm_widget_data_get returns NULL. Slightly better trapping(s). Author: devilhorns Date: 2009-08-26 07:34:55 -0700 (Wed, 26 Aug 2009) New Revision: 42012 Modified: trunk/TMP/st/elementary/src/lib/elm_toolbar.c Snip why don't you check if it is NULL or not ? Vincent Oops, thanks :) Will make the change. dh -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] eina won't compile with c++ compilers
hey, eina_log defines EINA_LOG_LEVEL_UNKNOWN to INT32_MIN (btw, why _MIN ?). The problem is that, stdint.h, INT32_MIN is defined if the compiler is not a c++ one. Which, btw, that the compilation on Windows fails. why not just putting EINA_LOG_LEVEL_UNKNOWN as the last value of the enum ? Is that value really needed ? Vincent -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] eina won't compile with c++ compilers
On Wed, 26 Aug 2009, Andre Dieb wrote: On Wed, Aug 26, 2009 at 3:52 PM, Vincent Torri vto...@univ-evry.fr wrote: hey, eina_log defines EINA_LOG_LEVEL_UNKNOWN to INT32_MIN (btw, why _MIN ?). The problem is that, stdint.h, INT32_MIN is defined if the compiler is not a c++ one. Which, btw, that the compilation on Windows fails. It is INT32_MIN (negative) so that the compiler won't set the enum typedef as unsigned int and forbid users to provide negative logging levels. and just -1 ? Vincent why not just putting EINA_LOG_LEVEL_UNKNOWN as the last value of the enum ? Is that value really needed ? That value is used for logging domains that haven't got their level set yet, which will tell eina_log to set it to the global logger level. We need a special value for the unknown level. Maybe #ifdef would fix it? Vincent -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- André Dieb Martins Embedded Systems and Pervasive Computing Lab (Embedded) Electrical Engineering Department (DEE) Center of Electrical Engineering and Informatics (CEEI) Federal University of Campina Grande (UFCG) Blog: http://genuinepulse.blogspot.com/ -- Ce message a ?t? v?rifi? par MailScanner pour des virus ou des polluriels et rien de suspect n'a ?t? trouv?. Message d?livr? par le serveur de messagerie de l'Universit? d'Evry. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] eina won't compile with c++ compilers
On Wed, Aug 26, 2009 at 3:52 PM, Vincent Torri vto...@univ-evry.fr wrote: hey, eina_log defines EINA_LOG_LEVEL_UNKNOWN to INT32_MIN (btw, why _MIN ?). The problem is that, stdint.h, INT32_MIN is defined if the compiler is not a c++ one. Which, btw, that the compilation on Windows fails. It is INT32_MIN (negative) so that the compiler won't set the enum typedef as unsigned int and forbid users to provide negative logging levels. why not just putting EINA_LOG_LEVEL_UNKNOWN as the last value of the enum ? Is that value really needed ? That value is used for logging domains that haven't got their level set yet, which will tell eina_log to set it to the global logger level. We need a special value for the unknown level. Maybe #ifdef would fix it? Vincent -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- André Dieb Martins Embedded Systems and Pervasive Computing Lab (Embedded) Electrical Engineering Department (DEE) Center of Electrical Engineering and Informatics (CEEI) Federal University of Campina Grande (UFCG) Blog: http://genuinepulse.blogspot.com/ -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] Accessing Box's items from python code
Dear List, I want to access a BOX element's items from python code to change the text on it. Please see this picture: http://laszlo.krekacs.googlepages.com/flowed_outofarea.png Looks like accessing by part name is not possible because the items are swallowed from external group. Also accessing them via embryo script (.edc) file seems impossible too (I could have implement some signaling between python and embryo). There are basically two way accessing them using C: 1) accessing them via eina iterator (complicated) 2) adding each element from C program, thats way we can access them through a variable. I would prefer this one, because of its simplicity, however I do not find the corresponding python functions. C has this function: evas_object_box_add() and evas_object_box_add_to(). In trunk/evas/src/lib/canvas/evas_object_box.c:477. I didnt find it in python bindings. I examined how other function is wrapped into python, like evas_object_image_add(). C: evas_object_image.c Python: trunk/BINDINGS/python/python-evas/include/evas/c_evas.pxd:507 trunk/BINDINGS/python/python-evas/evas/evas.c_evas_object.image.pxi:132 Looks like thats only what is required (c_evas.pxd:507): Evas_Object *evas_object_image_add(Evas *e) So Im asking if it is possible to add at least evas_object_box_add() to python bindings? If the above is true, it would be as simple as adding this line: Evas_Object *evas_object_box_add(Evas *e) However I lack the knowledge what exactly required to compile the python bindings. So I cant try out myself. I began to read what are these .pxd and .pxi files at http://wiki.cython.org/FAQ, but dont really see the whole picture. I post the example python code[1], if somebody want to play with it (the goal is to be able to change the items' texts): http://pastebin.ca/1543898 http://pastebin.ca/1543897 Every idea, pointers are much appreciated! Best regards, Laszlo [1]: Python: #!/usr/bin/env python import ecore import ecore.evas import edje import sys import os edje_obj_item0 = None def load_edje(canvas = , edje_file = , group = ): Create an edje.Edje object from a file @canvas: canvas object @file: filename as string @group: groupname as string @returns: edje object try: edje_obj = edje.Edje(canvas, file=edje_file, group=group) return edje_obj except Exception, e: # should be EdjeLoadError, but it's wrong on python2.5 raise SystemExit(Failed to load Edje file: %s % edje_file) def update_screen(): edje_obj_item0.part_text_set('text', 'Updated after one sec') def init_gui(): Initialize the main window f = ecore.evas.SoftwareX11 ee = f(w=320, h=640) edje.frametime_set(1.0 / 15) # Load and setup UI ee.title = Edje App Launcher Demo ee.name_class = (Edje_App_Launcher_Demo, Edje_App_Launcher_Demo) canvas = ee.evas edje_file = os.path.join(os.path.dirname(sys.argv[0]), 01-app_launcher.edj) edje_obj_main = load_edje(canvas, edje_file, main) edje_obj_main.size = canvas.size edje_obj_main.show() ee.data[edje] = edje_obj_main edje_obj_main.focus = True global edje_obj_item0 #edje_obj_item0 = load_edje(canvas, edje_file, item0) edje_obj_item1 = load_edje(canvas, edje_file, item1) edje_obj_item2 = load_edje(canvas, edje_file, item2) edje_obj_item3 = load_edje(canvas, edje_file, item3) edje_obj_item4 = load_edje(canvas, edje_file, item4) edje_obj_item5 = load_edje(canvas, edje_file, item5) edje_obj_item0 = edje_obj_main.part_swallow_get('item0') ee.show() edje_obj_item0.part_text_set('text','Overwritten') edje_obj_item0.size = canvas.size edje_obj_item0.show() ecore.timer_add(1.0, update_screen) ecore.main_loop_begin() if __name__ == '__main__': init_gui() --- 01-app_launcher.edc: images { image: background.jpeg LOSSY 95; image: audio_player.png COMP; image: image_viewer.png COMP; image: video_player.png COMP; image: web_browser.png COMP; } styles { style { name: style; base: font=DejaVuSans font_size=20 text_class=item align=top valign=center color=#000 wrap=word; tag: numbering + style=soft_outline outline_color=#7fa3ed color=#d8e0e3; } } collections { group { name: main; min: 800 480; script { public selected = 0; public pulsing = 0; public stop_pulsing_timer_id = 0; const Float:pulse_timeout = 10.0; public unselect() { if (get_int(selected) == 0) return; run_program(get_int(selected)); set_int(selected, 0); } public stop_pulsing() { if (get_int(pulsing) == 0) return; set_state(get_int(pulsing), default, 0.0);
Re: [E-devel] Toolbook
On Thu, 20 Aug 2009 16:12:09 -0300 Gustavo Sverzut Barbieri barbi...@profusion.mobi said: On Thu, Aug 20, 2009 at 3:41 PM, Christopher Michaelcpmicha...@comcast.net wrote: Gustavo Sverzut Barbieri wrote: On Thu, Aug 20, 2009 at 2:59 PM, Christopher Michaelcpmicha...@comcast.net wrote: Anyone else notice that the E toolbook widget does not support icons very well ? When you add a page to the toolbook, and use an icon to represent that page, the toolbar portion of the toolbook seems to not resize properly to accommodate the icon. Here is a screenshot to explain what I mean: http://devilhorns.us/images/toolbook.png I suppose this is related to the kind of widget or forgetting to do something because the main settings dialog handles that properly. Possible...but the main settings dialog doesn't use toolbook, just the toolbar. Ah! :-) it shouldn't make a difference.. hrrm. more likely in the toolbar smart itself in the case labels are shorter than icons - and then likely it's the theme -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)ras...@rasterman.com -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [elementary] _expand already exists on Windows
On Sat, 22 Aug 2009 09:33:05 +0200 (CEST) Vincent Torri vto...@univ-evry.fr said: fercksed :) Hey in elc_fileselector.c, _expand is defined, but it is a symbol that is already defined in mingw gcc. Can someone rename it ? (btw, all the functions in elm should have a namespace to avoid that kind of problem) Vincent -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] disable ecore_config by default
On Thu, 20 Aug 2009 21:44:25 +0200 (CEST) Vincent Torri vto...@univ-evry.fr said: hmm. now i think of it - maybe we can re-use this ecore lib but instead improve its facilities. eg support multiple profile - whole struct encode/decode via eet etc. etc. and list handling (as opposed th keys with numbers and counts in them etc.). this would break ecore_config users an do the same. what do people think? Hey, It seems that ecore_config is going to be removed. As a first step, i would like to disable by default during configuration. Is it ok ? Where should I announce that ecore-config will be removed soon ? Vincent -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel