Hi again,

Unfortunately I forgot to mention one thing. e.patch.tar.gz also contains e_mod_config.h and e_mod_config.c files for the start module.

Sorry for inconvinience.
Aleksej.

On 12/29/05, Aleksej Struk <[EMAIL PROTECTED]> wrote:
Hi all,

Some weeks ago it was a conversation about how e17 does smart maximization of  a window.
It was proposed to introduce some user defined configuration options, to let e17 to know the area of the desktop
it can use for  maximization. However, I think, Rasterman proposed much better solution. The idea was, that each gadget
should hint if it allows to maximize over it.

Please find the *.tar.gz archive attached. Also this archive can be found via the following link : http://rose.inf.unibz.it/~struk/e17/e.patch.tar.gz.
This archive contains some patches to e and e_modules.

First it touches e itself. It introduces E_GADMAN_POLICY_ALLOW_OVERLAP flag.  This flag can be used to set the way gadget influences the maximization of a border. Second, it patches all the standard E modules ( battery, cpufreq, start, etc ) and introduces a configuration menu option which allows to set E_GADMAN_POLICY_ALLOW_OVERLAP flag.

If E_GADMAN_POLICY_ALLOW_OVERLAP flag is set for the gadget, then the gadget is not taken into account when the maximized border computed. And vice versa, if it is not set
the gadget is taken into account computing maximized border. The following code shows how this option can be set/unset:

E_Gadman_Policy pol;
...
pol = .... ;

if( gadget->conf->allow_overlap == 0 )
   pol &= ~E_GADMAN_POLICY_ALLOW_OVERLAP;
else
   pol |= E_GADMAN_POLICY_ALLOW_OVERLAP;

e_gadman_client_policy_set( face->gmc, pol );
...

Please refer to the modules code, after applying the patch, to see how things really works ::))

Finally, the archive contains some patches for extra modules in e_modules. The 'calendar' and the 'monitor' modules are
patched to support the mechanizm described above.

As a conclusion, I think, this patch partialy solves the 4th case of the maximization TODO.

Thanks
Aleksej

--
Aleksej Struk
Master Degree Student
Free University of Bozen-Bolzano
Faculty of Computer Science
phone: +39-0471-061749
cell phone: +39-3204627049
[EMAIL PROTECTED] [EMAIL PROTECTED] - http://www.




--
Aleksej Struk
Master Degree Student
Free University of Bozen-Bolzano
Faculty of Computer Science
phone: +39-0471-061749
cell phone: +39-3204627049
[EMAIL PROTECTED] [EMAIL PROTECTED] - http://www.

Reply via email to