Enlightenment CVS committal
Author : chaos
Project : e17
Module : proto
Dir : e17/proto/entropy/src
Modified Files:
entropy_core.c
Log Message:
* OK - This bug was an ass to track down - when I made layout parents capable
of receiving events (as well as their children), I forgot to set the plugin
reference on the IPC-instantiated layouts - thus causing one hell of an
annoying bug. Think this has got it, though :)
===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/entropy_core.c,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -3 -r1.76 -r1.77
--- entropy_core.c 8 Apr 2006 08:13:35 -0000 1.76
+++ entropy_core.c 9 Apr 2006 12:41:44 -0000 1.77
@@ -85,10 +85,12 @@
}
} else if (e->major == ENTROPY_IPC_EVENT_LAYOUT_NEW) {
entropy_gui_component_instance*
(*entropy_plugin_layout_create)(entropy_core*);
+ entropy_gui_component_instance* instance;
printf("New layout requested!\n");
entropy_plugin_layout_create =
dlsym(core->layout_plugin->dl_ref, "entropy_plugin_layout_create");
- (*entropy_plugin_layout_create)(core);
+ instance = (*entropy_plugin_layout_create)(core);
+ instance->plugin = core->layout_plugin;
}
return 1;
@@ -681,6 +683,8 @@
plugin->gui_event_callback_p = gui_event_callback;
plugin->toolkit = entropy_plugin_helper_toolkit_get(plugin);
+ printf("GUI event callback (%s) registered as: %p\n",
plugin->name, plugin->gui_event_callback_p);
+
} else if (type == ENTROPY_PLUGIN_BACKEND_FILE) {
} else if (type == ENTROPY_PLUGIN_ACTION_PROVIDER) {
entropy_gui_component_instance* instance;
@@ -1156,8 +1160,9 @@
if (listener) {
listener->count--;
- //printf("- Ref count for (%p) '%s/%s' -> %d..\n",
listener->file, listener->file->path, listener->file->filename,
listener->count);
+ printf("- Ref count for (%p) '%s/%s' -> %d..\n",
listener->file, listener->file->path, listener->file->filename,
listener->count);
if (listener->count <= 0) {
+ printf(" Cleaning up above...\n");
ecore_hash_remove(core_core->uri_reference_list,
listener->file->uri);
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs