Re: How to change a cursor style in GtkTextView?



mili wrote:

Hello, Everyone

I want to change a cursor in a GtkTextView, such as in xemacs, changing to more pixel width and color to red. Can I?

Hello,
You can create your own cursor with gdk_cursor_new_from_pixmap and set its
fg and bg colours:
http://developer.gnome.org/doc/API/2.0/gdk/gdk-cursors.html

Then you can show it with gdk_window_set_cursor:
http://developer.gnome.org/doc/API/2.0/gdk/gdk-windows.html

Also you can set it with gdk_pointer_grab:
http://developer.gnome.org/doc/API/2.0/gdk/gdk-general.html

Olexiy





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]