[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[E-devel] [PATCH] Add filereg to Desklock/Screenlock/Screamrock



As per the subject. Protect the current background file for the
screenlock.

metrics
Index: e_desklock.c
===================================================================
RCS file: /var/cvs/e/e17/apps/e/src/bin/e_desklock.c,v
retrieving revision 1.27
diff -u -r1.27 e_desklock.c
--- e_desklock.c	19 Sep 2006 12:26:31 -0000	1.27
+++ e_desklock.c	17 Oct 2006 15:05:02 -0000
@@ -84,6 +84,10 @@
 	if (e_config->desklock_use_timeout)
 	  ecore_x_screensaver_timeout_set(e_config->desklock_timeout);
      }
+
+   if (e_config->desklock_background)
+       e_filereg_register(e_config->desklock_background);
+
    return 1;
 }
 
@@ -91,6 +95,9 @@
 e_desklock_shutdown(void)
 {
    e_desklock_hide();
+   if (e_config->desklock_background)
+       e_filereg_deregister(e_config->desklock_background);
+
    return 1;
 }
 
Index: e_int_config_desklock.c
===================================================================
RCS file: /var/cvs/e/e17/apps/e/src/bin/e_int_config_desklock.c,v
retrieving revision 1.38
diff -u -r1.38 e_int_config_desklock.c
--- e_int_config_desklock.c	17 Oct 2006 11:10:27 -0000	1.38
+++ e_int_config_desklock.c	17 Oct 2006 15:05:50 -0000
@@ -499,8 +499,12 @@
    if (cfdata->bg)
      {
 	if (e_config->desklock_background)
+        {
+          e_filereg_deregister(e_config->desklock_background);
 	  evas_stringshare_del(e_config->desklock_background);
+        }
 	e_config->desklock_background = evas_stringshare_add(cfdata->bg);
+        e_filereg_register(e_config->desklock_background);
      }
    
    if (_e_desklock_zone_num_get() > 1)