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

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



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
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:00:33 -0000
@@ -598,6 +598,7 @@
    fmc.selection.single = 1;
    fmc.selection.windows_modifiers = 0;
    e_fm2_config_set(o, &fmc);
+   e_fm2_path_set(o, path, "/");
    evas_object_smart_callback_add(o, "dir_changed",
 				  _cb_files_changed, cfdata);
    evas_object_smart_callback_add(o, "selection_change",
@@ -606,7 +607,6 @@
 				  _cb_files_selected, cfdata);
    evas_object_smart_callback_add(o, "changed",
 				  _cb_files_files_changed, cfdata);
-   e_fm2_path_set(o, path, "/");
    
    of = e_widget_scrollframe_pan_add(evas, o,
 				     e_fm2_pan_set,