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...
 
 
 
 
 
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to