Re: Getting the busy cursor to display.

2012-06-04 Thread Bernd Demian
Hallo, we use in a gtk+2.18 project , following function to set/se back the cursor: static void cscSetzeKursor(Dialogfeld*pDf, gboolean warten) { static GdkCursor *kursor_warte; static GdkCursor *kursor_pfeil; /* kursor setzen */ if(kursor_warte == NULL) kursor_warte=

Re: Getting the busy cursor to display.

2012-04-11 Thread Igor Chetverovod
2012/4/11, James Tappin jtap...@gmail.com: On 10 April 2012 11:36, Michael Cronenworth m...@cchtml.com wrote: James Tappin wrote: Is there some other call (or calls) I should be making to force the updates to take place? I use the following for widget updates during background

Re: Getting the busy cursor to display.

2012-04-11 Thread jcupitt
On 10 April 2012 18:33, James Tappin jtap...@gmail.com wrote: Thanks for the suggestion. Unfortunately in this case it doesn't help. (I have also tried gdk_display_flush and gdk_window_flush, but still the same story). Here's a tiny test program that works for me with gtk2. It just uses:

Re: Getting the busy cursor to display.

2012-04-11 Thread James Tappin
On 11 April 2012 04:36, jcup...@gmail.com wrote: On 10 April 2012 18:33, James Tappin jtap...@gmail.com wrote: Thanks for the suggestion. Unfortunately in this case it doesn't help. (I have also tried gdk_display_flush and gdk_window_flush, but still the same story). Here's a tiny test

Re: Getting the busy cursor to display.

2012-04-11 Thread James Tappin
On 11 April 2012 09:25, James Tappin jtap...@gmail.com wrote: On 11 April 2012 04:36, jcup...@gmail.com wrote: On 10 April 2012 18:33, James Tappin jtap...@gmail.com wrote: Thanks for the suggestion. Unfortunately in this case it doesn't help. (I have also tried gdk_display_flush and

Re: Getting the busy cursor to display.

2012-04-11 Thread James Tappin
On 11 April 2012 10:51, James Tappin jtap...@gmail.com wrote: I'm now really confused -- I've reordered some of the code so that the set_cursor call precedes putting a message in the status bar. And the status bar updates but not the cursor. OK: I think I've figured it. The problem is/was

Getting the busy cursor to display.

2012-04-10 Thread James Tappin
I have a gtk (fortran) application that displays a progress monitor while computing, and I would like to display the busy cursor while the program is reading a large data file. Right now what I have is: To define the busy cursor and GDK window (module [global] variables). draw_window =

Re: Getting the busy cursor to display.

2012-04-10 Thread jcupitt
On 10 April 2012 16:58, James Tappin jtap...@gmail.com wrote:      call gdk_display_sync(gdk_display_get_default())      call gdk_window_set_cursor(draw_window, busy_cursor)      call gdk_display_sync(gdk_display_get_default()) My gtk2 program does this with:

Re: Getting the busy cursor to display.

2012-04-10 Thread James Tappin
On 10 April 2012 10:09, jcup...@gmail.com wrote: On 10 April 2012 16:58, James Tappin jtap...@gmail.com wrote: call gdk_display_sync(gdk_display_get_default()) call gdk_window_set_cursor(draw_window, busy_cursor) call gdk_display_sync(gdk_display_get_default()) My gtk2

Re: Getting the busy cursor to display.

2012-04-10 Thread Michael Cronenworth
James Tappin wrote: Is there some other call (or calls) I should be making to force the updates to take place? I use the following for widget updates during background processing: while ( gtk_events_pending( ) ) gtk_main_iteration( ); Not sure if it will work for cursor drawing

Re: Getting the busy cursor to display.

2012-04-10 Thread James Tappin
On 10 April 2012 11:36, Michael Cronenworth m...@cchtml.com wrote: James Tappin wrote: Is there some other call (or calls) I should be making to force the updates to take place? I use the following for widget updates during background processing: while ( gtk_events_pending( ) )