Re: Changing cursor in GtkTextView widget.

2006-04-19 Thread Erik de Castro Lopo
Erik de Castro Lopo wrote: > Unfortunately, doing this after the top level call to > gtk_widget_show_all () is a PITA and doing before fails because > the call to gtk_text_view_get_window () returns NULL. While searching for something else I found a way to do this using g_signal_connect_after() t

Changing cursor in GtkTextView widget.

2006-04-19 Thread Erik de Castro Lopo
Hi all, After calling gtk_widget_show_all () on the top level window, I am able to change the cursor in an enclosed GtkTextView window by doing: GdkCursor *cursor = gdk_cursor_new (GDK_LEFT_PTR) ; GdkWindow *window = gtk_text_view_get_window (text_view, GTK_TEXT_WINDOW_TEXT) ; gdk_wi