Enlightenment CVS committal
Author : pfritz
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_embed.c
Log Message:
reset the file and the key of the theme object, when it gets cached
(this fix the remembered state bug of the menu)
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_embed.c,v
retrieving revision 1.143
retrieving revision 1.144
diff -u -3 -r1.143 -r1.144
--- ewl_embed.c 26 Feb 2008 04:35:58 -0000 1.143
+++ ewl_embed.c 17 Apr 2008 13:23:55 -0000 1.144
@@ -5,6 +5,7 @@
#include "ewl_debug.h"
#include <Evas.h>
+#include <Edje.h>
static int ewl_embed_last_mouse_x = 0;
static int ewl_embed_last_mouse_y = 0;
@@ -1235,6 +1236,11 @@
const char *type;
type = evas_object_type_get(obj);
+
+ /* reset the file and the key of the edje object */
+ if (!strcmp(type, "edje"))
+ edje_object_file_set(obj, "", "");
+
obj_list = ecore_hash_get(e->obj_cache, (void *)type);
if (!obj_list) {
obj_list = ecore_list_new();
@@ -1798,6 +1804,7 @@
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
+
/**
* @param e: the embed to freeze redraws and canvas events
* @return Returns no value.
@@ -1814,7 +1821,6 @@
* Global freeze on theme events while theme's are being manipulated.
*/
ewl_engine_theme_freeze(e);
-
ewl_engine_canvas_freeze(e);
DLEAVE_FUNCTION(DLEVEL_STABLE);
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs