simple code : just use blank cursor replace normal cursor
void hide_cursor() {
GdkCursor* cursor_blank = gdk_cursor_new(GDK_BLANK_CURSOR);
gdk_window_set_cursor(gtk_widget_get_window(widget), cursor_blank);
}
void show_cursor() {
GdkCursor* cursor_arrow = gdk_cursor_new(GDK_ARROW);
gdk_window_set_cursor(gtk_widget_get_window(widget), cursor_current);
}
2013/9/26 Woody Wu <narkewoody@xxxxxxxxx>
On Wed, Sep 25, 2013 at 05:29:50PM +0200, LE GARREC Vincent wrote:
> gdk_window_set_cursor ???
Maybe works. Thank you anyway. I just found out a method to ask my
window-manager to hide the cursor for me.
>
>
> 2013/9/25 Woody Wu <narkewoody@xxxxxxxxx>
>
> > Hi,
> >
> > In GTk+, how do I hide mouse cursor in whole of my app? Since it
> > supposed to be used in a touch-screen.
> >
> > Thanks in advance.
> >
> > --
> > I can't go back to yesterday - because I was a different person then
> > _______________________________________________
> > gtk-list mailing list
> > gtk-list@xxxxxxxxx
> > https://mail.gnome.org/mailman/listinfo/gtk-list
> >
--
I can't go back to yesterday - because I was a different person then
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list
_______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx https://mail.gnome.org/mailman/listinfo/gtk-list