diff src/shape_text.c @ 224:29e1b2bffe4c

X backend only sent EVT_MOUSE_MOVE_RAW to MadButterfly. - backend does not interpret mouse events (over/out/move), now. - redraw manager, now, interpret mouse events to make it backend independent. - The task (interpret mouse events) should be moved to somewhere in futhure. - backend only sent MotionNotify as EVT_MOUSE_MOVE_RAW. - EVT_MOUSE_MOVE_RAW is interpreted by backend independent code.
author Thinker K.F. Li <thinker@branda.to>
date Mon, 15 Dec 2008 10:13:03 +0800
parents c234ee745ceb
children a90fd749af82
line wrap: on
line diff
--- a/src/shape_text.c	Sun Dec 14 12:53:45 2008 +0800
+++ b/src/shape_text.c	Mon Dec 15 10:13:03 2008 +0800
@@ -42,7 +42,7 @@
 	return NULL;
 
     memset(text, 0, sizeof(sh_text_t));
-    MBO_TYPE(text) = MBO_TEXT;
+    mb_obj_init(text, MBO_TEXT);
     text->data = strdup(txt);
     if(text->data == NULL) {
 	free(text);