Enlightenment CVS committal
Author : davemds
Project : e_modules
Module : bling
Dir : e_modules/bling
Modified Files:
compmgr.c e_mod_config.c e_mod_main.c e_mod_main.h
Log Message:
* Fix shadow_enable functionality
* Reload composite on config apply
* Fix shadow_opacity slider
Now bling work great on my machine :)
Please let me know if you have any issue.
===================================================================
RCS file: /cvs/e/e_modules/bling/compmgr.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- compmgr.c 12 Nov 2007 05:03:36 -0000 1.12
+++ compmgr.c 25 Dec 2007 00:09:51 -0000 1.13
@@ -954,7 +954,7 @@
if (w->windowType == ECORE_X_WINDOW_TYPE_DESKTOP)
continue;
- if (w->shadowSize > 0)
+ if (w->shadowSize > 0 && config->shadow_enable)
{
switch (compMode)
{
===================================================================
RCS file: /cvs/e/e_modules/bling/e_mod_config.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- e_mod_config.c 24 Dec 2007 21:43:07 -0000 1.11
+++ e_mod_config.c 25 Dec 2007 00:09:51 -0000 1.12
@@ -126,7 +126,8 @@
b->config->fx_fade_opacity_enable = cfdata->fade_opacity;
e_config_save_queue();
- /* Reload composite manager! */
+ bling_composite_restart(b);
+
return 1;
}
@@ -152,7 +153,7 @@
ob = e_widget_label_add(evas, "Shadow Opacity");
e_widget_table_object_append(ot, ob, 0, i, 1, 1, 0, 0, 0, 0);
- ob = e_widget_slider_add(evas, 1, 0, "%1.00f\%", 0, 1, 0.05, 0,
&(cfdata->shadow_opacity), NULL, 150);
+ ob = e_widget_slider_add(evas, 1, 0, "%1.2f\%", 0, 1, 0.05, 0,
&(cfdata->shadow_opacity), NULL, 150);
e_widget_table_object_append(ot, ob, 1, i, 1, 1, 0, 0, 1, 0);
i++;
@@ -212,8 +213,8 @@
b->config->fx_fade_out_step = cfdata->fade_out_step/100.0;
e_config_save_queue();
+ bling_composite_restart(b);
- /* reload comp manager! */
return 1;
}
===================================================================
RCS file: /cvs/e/e_modules/bling/e_mod_main.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- e_mod_main.c 24 Dec 2007 21:43:07 -0000 1.14
+++ e_mod_main.c 25 Dec 2007 00:09:51 -0000 1.15
@@ -112,8 +112,8 @@
_config_bling_module(con, b);
}
-static int
-_bling_composite_restart(void *data)
+int
+bling_composite_restart(void *data)
{
Bling *b = data;
@@ -221,7 +221,7 @@
_bling_config_menu_new(b);
#endif
if (getenv("RESTART"))
- ecore_idle_enterer_add(_bling_composite_restart, b);
+ ecore_idle_enterer_add(bling_composite_restart, b);
else if (!composite_init(b))
{
E_CONFIG_DD_FREE(b->conf_edd);
===================================================================
RCS file: /cvs/e/e_modules/bling/e_mod_main.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- e_mod_main.h 24 Dec 2007 18:49:29 -0000 1.7
+++ e_mod_main.h 25 Dec 2007 00:09:51 -0000 1.8
@@ -55,5 +55,5 @@
/* Composite functions */
int composite_init(Bling *b);
void composite_shutdown(void);
-
+int bling_composite_restart(void *data);
#endif /* E_MOD_MAIN_H */
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs