Hi, I think its better to specify that in the directfbrc file. Thanks & Regards, Harikrishnan P
_____ From: [EMAIL PROTECTED] [mailto:directfb-dev- [EMAIL PROTECTED] On Behalf Of ??? Sent: Monday, May 19, 2008 11:00 AM To: directfb-dev@directfb.org Subject: [directfb-dev] GTK cursor invisible. Hi, all. I cross-compiled DirectFB-1.1.1 and GTK 2.12.6. and ported my arm9 board. By the way, I wanted to hide mouse cursor in all GTK application. So, in my gtk application, I coded below. //////////////////////////////////////////// char in_cursor[] = {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0 ,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0}; GdkCursor *cursor; GdkBitmap *bp; GdkColor color = {0,0,0,0}; bp = gdk_bitmap_create_from_data(NULL , in_cursor , 16,16); cursor = gdk_cursor_new_from_pixmap(bp , bp , &color , &color , 8 , 8); gdk_window_set_cursor(window , cursor); ////////////////////////////////////////////// This application show no mouse cursor in i386 pc( GTK backend X11 ). But, same application have gtk default mouse cursor in arm9 board! (GTK backend DirectFB). Finally, I should hack the gdk-directfb code. in gdk_window_set_cursor func in gdkwindow-directfb.c, I set code in the func to comment like below. //////////////////////////////////////////////// void gdk_window_set_cursor (GdkWindow *window, GdkCursor *cursor) { #if 0 //wschoi GdkWindowImplDirectFB *impl; GdkCursor *old_cursor; g_return_if_fail (GDK_IS_WINDOW (window)); ... } if (old_cursor) gdk_cursor_unref (old_cursor); #endif } /////////////////////////////////////////////////// I have a question. Is this right method? Isn't this method to make GTK application execute not well? best regards... <http://www.naver.com/> <http://happybean.naver.com/main/SectionMain.nhn> <http://mail.naver.com/newmailcheck/1dbsFqFG1rJSKrtmFqEYMokvpxu/KrUmp4p4pzp4 MxKqKzJ4M434MoIg1xMwFqvqhoRv1Bi0MX34MS9vpBpgpz0Zp6Fdp4U5WXiN.gif> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it. Contact your Administrator for further information.
_______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev