Re: [e-users] [E-devel] void *event_info, passed to Button events (clicked).

2014-02-01 Thread Robert Heller
At Sat, 1 Feb 2014 06:59:49 +0900 Carsten Haitzler (The Rasterman) 
ras...@rasterman.com wrote:

 
 On Fri, 31 Jan 2014 16:39:26 -0500 Robert Heller hel...@deepsoft.com said:
 
  At Sat, 1 Feb 2014 06:28:50 +0900 Carsten Haitzler (The Rasterman)
  ras...@rasterman.com wrote:
  
   
   On Fri, 31 Jan 2014 12:47:22 -0500 Robert Heller hel...@deepsoft.com 
   said:
   
At Fri, 31 Jan 2014 14:12:35 -0200 Enlightenment users discussion 
support enlightenment-users@lists.sourceforge.net wrote:

 
 On Fri, Jan 31, 2014 at 12:56 PM, Robert Heller hel...@deepsoft.com
 wrote:
  Where is this argument documented?  Specificly, which Evas event
  structure is passed for an elementary button widget for a clicked
  event?  I would like to get various event information, such as the x
  and y position of the mouse (I know this information is there
  somewhere, since it is part of the underlying X11 event).  Can I 
  just
  cast the event_info pointer to a Evas_Event_Mouse_Down object?  Or 
  is
  the event_info something else?  Nowhere in the elementary docs for
  the button widget
  (http://docs.enlightenment.org/stable/elementary/group__Button.html)
  says what is passed.  ALL of the examples totally ignore the third
  argument to the event callbacks and *nowhere* is this parameter
  documented, other than in the Evas docs which just say that it
  contains some event specific structure.
 
 
 As a general rule, if the documentation for the widget doesn't say
 what event_info is,
 you can assume there's nothing there.

Well, that kind of sucks...

Second question: given an Evas_Object (what is passed into the clicked
event callback -- I am assuming this is the elm_button object), is it
possible to get the *root* x  y position?  I know that I can get the
object's *relative* [to its parent] x and y via evas_object_geometry_get
(), but how would I get the root window position?  I presume I would 
have
to walk up the tree, but would this work correctly?
   
   there i think you have a misunderstanding. evas_object_geometry_get() 
   never
   gets relative geometry. evas has no concept of relative geometry...
   everything is absolute in canvas geomtery. (relative to canvas top-left)
  
  What I *meant* by relative geometry was relative to canvas top-left.
  What I *want* is the *absolute* x and y on the root window.  Is it possible
  to get this?
 
 you will have to query the window location yourself. elm_win provides one of
 these for you :) elm_win_screen_position_get()

OK, next question.  evas_object_move() does not seem to be able to 'move' 
*windows*.  I can't find either a elm_ or evas_ function that sets the 
position of a *window*.  Is there some function that does this?  If so, where 
is it?  Or is there some other magic that does this?

 
static
void event_cb(void *data, Evas_Object *obj, void
*event_info) {
Evas_Coord relx, rely, topx, topy, rootx, rooty, w,
h; Evas_Object *top = elm_object_top_widget_get ( obj
); 
evas_object_geometry_get (obj, relx, rely, w,
h); evas_object_geometry_get (top, topx, topy, NULL,
NULL); rootx = topx +
relx; rooty = topy + rely;

...
}

Evas_Object *button = elm_button_add(win);
evas_object_smart_callback_add(button, clicked, event_cb, mumble);

 
  --
  Robert Heller -- 978-544-6933 / hel...@deepsoft.com
  Deepwoods Software-- http://www.deepsoft.com/
  ()  ascii ribbon campaign -- against html e-mail
  /\  www.asciiribbon.org   -- against proprietary attachments
 
 
 
 
  --
  WatchGuard Dimension instantly turns raw network data into 
  actionable
  security intelligence. It gives you real-time visual feedback on key
  security issues and trends.  Skip the complicated setup - simply
  import a virtual appliance and go from zero to informed in seconds.
  http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk
  ___
  enlightenment-users mailing list
  enlightenment-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/enlightenment-users
 
 --
 WatchGuard Dimension instantly turns raw network data into actionable 
 security intelligence. It gives you real-time visual feedback on key
 security issues and trends.  Skip the complicated setup - simply 
 import
 a virtual appliance and go from zero to informed in seconds.
 http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk
 ___
 

Re: [e-users] [E-devel] void *event_info, passed to Button events (clicked).

2014-02-01 Thread Christopher Barry
On Sat, 1 Feb 2014 11:03:28 -0500
Robert Heller hel...@deepsoft.com wrote:

OK, next question.  evas_object_move() does not seem to be able to
'move' *windows*.  I can't find either a elm_ or evas_ function that
sets the position of a *window*.  Is there some function that does
this?  If so, where is it?  Or is there some other magic that does
this?

I may be barking up the wrong tree here, but window 'remembers' save
the position that the user sets to remember window positions for next
invocation of said window. Also, there are functions that initially
position the window per user pref (Settings-Windows-Window Display).
Does that help? Setting a window's position on a screen inside your
code kind of goes against whatever policy the user may have set. Is
that really what you want to do?

--
Regards,
Christopher Barry

Random geeky fortune:
One meets his destiny often on the road he takes to avoid it.

--
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk
___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


Re: [e-users] [E-devel] void *event_info, passed to Button events (clicked).

2014-02-01 Thread Robert Heller
At Sat, 1 Feb 2014 11:44:22 -0500 Enlightenment users discussion  support  
enlightenment-users@lists.sourceforge.net wrote:

 
 On Sat, 1 Feb 2014 11:03:28 -0500
 Robert Heller hel...@deepsoft.com wrote:
 
 OK, next question.  evas_object_move() does not seem to be able to
 'move' *windows*.  I can't find either a elm_ or evas_ function that
 sets the position of a *window*.  Is there some function that does
 this?  If so, where is it?  Or is there some other magic that does
 this?
 
 I may be barking up the wrong tree here, but window 'remembers' save
 the position that the user sets to remember window positions for next
 invocation of said window. Also, there are functions that initially
 position the window per user pref (Settings-Windows-Window Display).
 Does that help? Setting a window's position on a screen inside your
 code kind of goes against whatever policy the user may have set. Is
 that really what you want to do?

In this case yes. The window in question will have override set -- it won't
have window manager decorations, so it can't be moved, etc. by the user. It is
not a 'normal' window. It is a sort of popup menu that I want position next to
the button that created it.  What is happening 'by default' is the the window 
*always* shows up at 0,0 on the root screen (locked to the upper left corner).

 
 --
 Regards,
 Christopher Barry
 
 Random geeky fortune:
 One meets his destiny often on the road he takes to avoid it.
 
 --
 WatchGuard Dimension instantly turns raw network data into actionable 
 security intelligence. It gives you real-time visual feedback on key
 security issues and trends.  Skip the complicated setup - simply import
 a virtual appliance and go from zero to informed in seconds.
 http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk
 ___
 enlightenment-users mailing list
 enlightenment-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-users
 
 

-- 
Robert Heller -- 978-544-6933 / hel...@deepsoft.com
Deepwoods Software-- http://www.deepsoft.com/
()  ascii ribbon campaign -- against html e-mail
/\  www.asciiribbon.org   -- against proprietary attachments


   

--
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk
___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


Re: [e-users] [E-devel] void *event_info, passed to Button events (clicked).

2014-02-01 Thread Robert Heller
At Sat, 1 Feb 2014 12:15:39 -0500 Robert Heller hel...@deepsoft.com wrote:

 
 At Sat, 1 Feb 2014 11:44:22 -0500 Enlightenment users discussion  support
 enlightenment-users@lists.sourceforge.net wrote:
 
  
  On Sat, 1 Feb 2014 11:03:28 -0500
  Robert Heller hel...@deepsoft.com wrote:
  
  OK, next question.  evas_object_move() does not seem to be able to
  'move' *windows*.  I can't find either a elm_ or evas_ function that
  sets the position of a *window*.  Is there some function that does
  this?  If so, where is it?  Or is there some other magic that does
  this?
  
  I may be barking up the wrong tree here, but window 'remembers' save
  the position that the user sets to remember window positions for next
  invocation of said window. Also, there are functions that initially
  position the window per user pref (Settings-Windows-Window Display).
  Does that help? Setting a window's position on a screen inside your
  code kind of goes against whatever policy the user may have set. Is
  that really what you want to do?
 
 In this case yes. The window in question will have override set -- it won't
 have window manager decorations, so it can't be moved, etc. by the user. It is
 not a 'normal' window. It is a sort of popup menu that I want position next to
 the button that created it.  What is happening 'by default' is the the window 
 *always* shows up at 0,0 on the root screen (locked to the upper left corner).

Nevermind, ecore_x_window_move() does the trick...

 
  
  --
  Regards,
  Christopher Barry
  
  Random geeky fortune:
  One meets his destiny often on the road he takes to avoid it.
  
  --
  WatchGuard Dimension instantly turns raw network data into actionable 
  security intelligence. It gives you real-time visual feedback on key
  security issues and trends.  Skip the complicated setup - simply import
  a virtual appliance and go from zero to informed in seconds.
  http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk
  ___
  enlightenment-users mailing list
  enlightenment-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/enlightenment-users
  
  
 

-- 
Robert Heller -- 978-544-6933 / hel...@deepsoft.com
Deepwoods Software-- http://www.deepsoft.com/
()  ascii ribbon campaign -- against html e-mail
/\  www.asciiribbon.org   -- against proprietary attachments




--
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk
___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


Re: [e-users] [E-devel] void *event_info, passed to Button events (clicked).

2014-02-01 Thread The Rasterman
On Sat, 1 Feb 2014 11:03:28 -0500 Robert Heller hel...@deepsoft.com said:

 OK, next question.  evas_object_move() does not seem to be able to 'move' 
 *windows*.  I can't find either a elm_ or evas_ function that sets the 
 position of a *window*.  Is there some function that does this?  If so, where 
 is it?  Or is there some other magic that does this?

works for me - i just added some tests for this to elementary window states
tests. works like a charm. see commit: 57f04c5c28cbe21801e70eb4d61e535d498326ed

https://git.enlightenment.org/core/elementary.git/commit/?id=57f04c5c28cbe21801e70eb4d61e535d498326ed

i'm sitting here clicking the move to 20 20 and move to 0 0 buttons and the
window does as directed - both in override redirect test and the normal managed
test.

  
 static
 void event_cb(void *data, Evas_Object *obj, void
 *event_info) {
 Evas_Coord relx, rely, topx, topy, rootx, rooty, w,
 h; Evas_Object *top = elm_object_top_widget_get ( obj
 ); 
 evas_object_geometry_get (obj, relx, rely, w,
 h); evas_object_geometry_get (top, topx, topy, NULL,
 NULL); rootx = topx +
 relx; rooty = topy + rely;
 
 ...
 }
 
 Evas_Object *button = elm_button_add(win);
 evas_object_smart_callback_add(button, clicked, event_cb,
 mumble);
 
  
   --
   Robert Heller -- 978-544-6933 / hel...@deepsoft.com
   Deepwoods Software-- http://www.deepsoft.com/
   ()  ascii ribbon campaign -- against html e-mail
   /\  www.asciiribbon.org   -- against proprietary attachments
  
  
  
  
   --
   WatchGuard Dimension instantly turns raw network data into
   actionable security intelligence. It gives you real-time visual
   feedback on key security issues and trends.  Skip the complicated
   setup - simply import a virtual appliance and go from zero to
   informed in seconds.
   http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk
   ___
   enlightenment-users mailing list
   enlightenment-users@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/enlightenment-users
  
  --
  WatchGuard Dimension instantly turns raw network data into
  actionable security intelligence. It gives you real-time visual
  feedback on key security issues and trends.  Skip the complicated
  setup - simply import a virtual appliance and go from zero to
  informed in seconds.
  http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk
  ___ enlightenment-users
  mailing list enlightenment-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/enlightenment-users
  
  
   
 
 -- 
 Robert Heller -- 978-544-6933 / hel...@deepsoft.com
 Deepwoods Software-- http://www.deepsoft.com/
 ()  ascii ribbon campaign -- against html e-mail
 /\  www.asciiribbon.org   -- against proprietary attachments
 
 
   
   
 
 --
 WatchGuard Dimension instantly turns raw network data into actionable 
 security intelligence. It gives you real-time visual feedback on key
 security issues and trends.  Skip the complicated setup - simply
 import a virtual appliance and go from zero to informed in seconds.
 http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk
 ___
 enlightenment-devel mailing list
 enlightenment-de...@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 


   
   -- 
   Robert Heller -- 978-544-6933 / hel...@deepsoft.com
   Deepwoods Software-- http://www.deepsoft.com/
   ()  ascii ribbon campaign -- against html e-mail
   /\  www.asciiribbon.org   -- against proprietary attachments
   
   
 
   
   --
   WatchGuard Dimension instantly turns raw network data into actionable 
   security intelligence. It gives you real-time visual feedback on key
   security issues and trends.  Skip the complicated setup - simply import
   a virtual appliance and go from zero to informed in seconds.
   

[e-users] Dropbox

2014-02-01 Thread Larry
I've looked all over and can't find the info. Is there a way to get dropbox to 
work with 
enlightenment?
I have found so far that dropbox no longer uses nautilus to open up any more 
and I can't 
figure out what it uses.
How can I get it to open up to the desktop?
Thanks

--
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk
___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


Re: [e-users] Dropbox

2014-02-01 Thread Jeff Hoogland
What do you mean? Dropbox works fine under E17 by default.

Under E18 it doesn't work with the new systray though sadly - so while it
still syncs your files you can't get status updates.

Can you be more specific about what isn't working for you?


On Sat, Feb 1, 2014 at 9:57 PM, Larry llwy...@suddenlink.net wrote:

 I've looked all over and can't find the info. Is there a way to get
 dropbox to work with
 enlightenment?
 I have found so far that dropbox no longer uses nautilus to open up any
 more and I can't
 figure out what it uses.
 How can I get it to open up to the desktop?
 Thanks


 --
 WatchGuard Dimension instantly turns raw network data into actionable
 security intelligence. It gives you real-time visual feedback on key
 security issues and trends.  Skip the complicated setup - simply import
 a virtual appliance and go from zero to informed in seconds.

 http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk
 ___
 enlightenment-users mailing list
 enlightenment-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-users




-- 
~Jeff Hoogland http://jeffhoogland.com/
Thoughts on Technology http://jeffhoogland.blogspot.com/, Tech Blog
Bodhi Linux http://bodhilinux.com/, Enlightenment for your Desktop
--
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk
___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users