Enlightenment CVS committal
Author : kwo
Project : misc
Module : engage
Dir : misc/engage/src
Modified Files:
icon.c
Log Message:
Segv--.
===================================================================
RCS file: /cvsroot/enlightenment/misc/engage/src/icon.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- icon.c 11 Apr 2004 21:11:44 -0000 1.2
+++ icon.c 11 Apr 2004 21:47:18 -0000 1.3
@@ -67,7 +67,7 @@
od_icon_mapping_get(winclass, &name, &icon_name);
char *icon_path = od_icon_path_get(icon_name);
-#if 0
+#if 1
# ifdef HAVE_IMLIB
OD_Icon *ret = od_icon_grab(title, win);
# else
@@ -98,19 +98,21 @@
dsp = ecore_x_display_get();
scr = DefaultScreen(dsp);
hints = XGetWMHints(dsp, win);
+ ecore_x_pixmap_geometry_get(hints->icon_pixmap, &x, &y, &w, &h);
imlib_context_set_display(dsp);
imlib_context_set_visual(DefaultVisual(dsp, scr));
imlib_context_set_colormap(DefaultColormap(dsp, scr));
imlib_context_set_dither_mask(0);
imlib_context_set_drawable(hints->icon_pixmap);
- ecore_x_pixmap_geometry_get(hints->icon_pixmap, &x, &y, &w, &h);
printf("size is %d, %d, %d, %d\n", x, y, w, h);
//XSync(dsp, False);
- img = imlib_create_image_from_drawable(hints->icon_mask, x, y, w, h, 0);
-
- //evas_object_image_pixels_import(ret->icon, imlib_image_get_data());
- //imlib_free_image();
+//img = imlib_create_image_from_drawable(hints->icon_mask, x, y, w, h, 0);
+ img = imlib_create_image_from_drawable(0, x, y, w, h, 0);
+ imlib_context_set_image(img);
+
+ evas_object_image_pixels_import(ret->icon, imlib_image_get_data());
+ imlib_free_image();
XFree(hints);
return ret;
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs