[E-devel] Invalid memory access in Edje script
Help! I give up! I'm getting this error with a mouse click using fnmatch in an Edje script. EDJE:ERROR with embryo script. ENTRY POINT: _p0 ERROR: Invalid memory access I've reduced the Edje file to this and still can't see a problem. If its not error in the code I'll file a ticket. Thanks for any help, digger -- collections { group { name: "main"; script { public toggle() { set_state(PART:"button", "active", 0.0); } } parts { part { name: "button"; type: RECT; mouse_events: 1; description { state: "default" 0.0; color: 0 255 0 255; } description { state: "active" 0.0; color: 0 0 255 255; } } } programs { program { name: "set"; signal: "mouse,clicked,1"; source: "*button*"; script { // If call the function here it works // toggle(); new exp[] = "button"; // These expressions work okay //if ( !strcmp(exp, "button")) { //if ( !fnmatch("button", src) ) { if ( !fnmatch(exp, src) ) { toggle(); } } } } } } signature.asc Description: This is a digitally signed message part - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Invalid memory access in Edje script
On Thu, 2009-01-01 at 12:58 +1100, Carsten Haitzler wrote: > On Wed, 26 Nov 2008 15:43:10 -0500 digger vermont > babbled: > > i'm baffled. staring at strcmp vs fnmatch bindings in embryo - they are > IDENTICAL - except one calls strcmp with the 2 stgrings, the other fnmatch... > i'm scratching my noggen. > I'll take that to mean I'm not crazy and it is a bug. http://trac.enlightenment.org/e/ticket/178 > > Help! I give up! > > > > I'm getting this error with a mouse click using fnmatch in an Edje > > script. > > > > EDJE:ERROR with embryo script. > > ENTRY POINT: _p0 > > ERROR: Invalid memory access > > > > I've reduced the Edje file to this and still can't see a problem. If > > its not error in the code I'll file a ticket. > > > > Thanks for any help, > > > > digger > > -- > > collections { > > group { > > name: "main"; > > script { > > public toggle() { > > set_state(PART:"button", "active", 0.0); > > } > > } > > parts { > > part { > > name: "button"; > > type: RECT; > > mouse_events: 1; > > description { > > state: "default" 0.0; > > color: 0 255 0 255; > > } > > description { > > state: "active" 0.0; > > color: 0 0 255 255; > > } > > } > > } > > programs { > > program { > > name: "set"; > > signal: "mouse,clicked,1"; > > source: "*button*"; > > script { > > // If call the function here it works > > // toggle(); > > new exp[] = "button"; > > // These expressions work okay > > //if ( !strcmp(exp, "button")) { > > //if ( !fnmatch("button", src) ) { > > if ( !fnmatch(exp, src) ) { > > toggle(); > > } > > } > > } > > } > > } > > } > > > > > > signature.asc Description: This is a digitally signed message part -- ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] Mouse events with elementary and python?
Hello All, I'm working with the python bindings for elementary and can't figure out how to use the mouse events. I can get them to work with a slider, but with the frame and anchor block I tried it is not. fr = elementary.Frame(win) fr.label_set('Frame') fr.size_hint_weight_set(1.0, 1.0) fr.size_hint_align_set(-1.0, -1.0) fr.on_mouse_move_add(print_event) tb.pack(fr, 0, 0, 1, 1) fr.show() What am I missing? Thanks, digger signature.asc Description: This is a digitally signed message part -- Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Mouse events with elementary and python?
Hi Gustavo, On Fri, 2009-05-01 at 08:29 -0300, Gustavo Sverzut Barbieri wrote: > On Thu, Apr 30, 2009 at 10:17 PM, digger vermont wrote: > > Hello All, > > > > I'm working with the python bindings for elementary and can't figure out > > how to use the mouse events. I can get them to work with a slider, but > > with the frame and anchor block I tried it is not. > > > >fr = elementary.Frame(win) > >fr.label_set('Frame') > >fr.size_hint_weight_set(1.0, 1.0) > >fr.size_hint_align_set(-1.0, -1.0) > >fr.on_mouse_move_add(print_event) > >tb.pack(fr, 0, 0, 1, 1) > >fr.show() > > > > What am I missing? > > probably fr has no parts that get events (see edje and > mouse_events:0). What are you trying to do? It's not safe to rely on > theme and add mouse_move yourself, you're supposed to either send > events from edje OR create your own transparent rectangle that get > mouse events (and put it in repeat mode). > Okay, I guess I thought that since python offered up methods for events (on_mouse_*_add) that they would auto-magically work. The above was just an example I made to experiment with events. I'm looking at writing a calendar app and playing around with the UI. My thought at the moment was to make a Table with the cells being days. Put an AnchorView in a cell with the events for that day. Clicking on the the cell would resize the AnchorView to fill the screen so you could actually read and work with it. Thanks for your help, digger signature.asc Description: This is a digitally signed message part -- Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel