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

Re: [E-devel] [PATCH] segv On Desklock Config



On Tue, Oct 17, 2006 at 08:37:16PM +1000, Metrics wrote:
> Current CVS segfaults on changing from Basic to Advanced in desklock
> config dialog due to callbacks being registered for directory changed
> before the widgets are actually created. Just moved the callbacks to a
> bit later on.
> 
> Not sure if this is actually the best way to deal with this though.
> 
> metrics

Actually, the problem is a bit different. So this is actually the
correct way to fix it. Thanks dh.

metrics
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.37
diff -u -r1.37 e_int_config_desklock.c
--- e_int_config_desklock.c	8 Oct 2006 08:04:17 -0000	1.37
+++ e_int_config_desklock.c	17 Oct 2006 12:32:46 -0000
@@ -71,7 +71,6 @@
 
    int bg_mode; // config
    char *bg; // config
-   Evas *evas; // local variable
    Evas_Object *preview_image; // local variable
 
 #ifdef HAVE_PAM
@@ -547,7 +546,8 @@
 
    z = e_zone_current_get(cfd->con);
    
-   cfdata->evas = evas;
+   cfdata->o_fm = NULL;
+   cfdata->o_frame = NULL;
    
    ot = e_widget_table_add(evas, 0);
    ol = e_widget_table_add(evas, 0);