[prev in list] [next in list] [prev in thread] [next in thread] 

List:       enlightenment-devel
Subject:    Re: [E-devel] [patch][#113] transferring gadgets over locations
From:       Carsten Haitzler (The Rasterman) <raster () rasterman ! com>
Date:       2009-08-29 8:39:25
Message-ID: 20090829183925.1257737f.raster () rasterman ! com
[Download RAW message or body]

On Mon, 24 Aug 2009 00:31:58 +0400 victor <victor.scorpion@gmail.com> said:

awesomeness! i like. in svn it goes.

> Hi guys.
> 
> Here is my solution for #113 ticket request. This allows to transfer a
> gadget to different locations. In short, 
> 
> - any module can register arbitrary number of locations by invoking
> e_gadcon_location_register(). 
> - module is responsible to provide 2 functions, one for removing
> particular gadget and one to add particular gadget class. 
> - module responsible to equip its gadcon(s) with reference to registered
> location. If a gadcon contains non-NULL location reference, each gadget
> contained by this gadcon can have submenu on its context menu. Template
> function for constructing such submenu is provided
> e_gadcon_client_add_location_menu. Gadgets can be moved from and to this
> location by invoking menu items. Gadcons with NULL location reference
> can accept transferred gadgets by module logic but can't send contained
> gadgets to another module.
> - module responsible to unregister location when gadcon is no more
> available.
> - menu items for context submenu is sorted by E_GADCON_SITE_XXX assigned
> to that. Module can assign and change an icon for context menu item
> corresponding to its location(s).
> - Currently only shelves and gadman (desktop) used in gadget transfer
> operations. I believe it is no trouble to ivolve any other
> gadcon-capable module into the process. If you want to have that, please
> just let me know.
> 
> Here the patch in attachmet. It even works, at least sometimes and at
> least for me. Hope you'll find it useful.
> 
> Sincerely,
> 
> Victor.
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    raster@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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic