Re: how to display "busy" cursor ? and another question

2008-10-06 Thread Allin Cottrell
On Sun, 5 Oct 2008, Han wrote: > Thanks Allin. I tried your example code and it somehow did not work > for me, i.e. the cursor does not show "watch". It can be tricky deciding which window(s) should display the watch cursor. See John Cupitt's suggestion. > >gdk_window_set_cursor(window, c

Re: how to display "busy" cursor ? and another question

2008-10-06 Thread jcupitt
2008/10/4 Allin Cottrell <[EMAIL PROTECTED]>: > Something like this, maybe: I do this with something very similar. In pseudo-code: set_up_my_application(): GdkCursor *busy_cursor = gdk_cursor_new(GDK_WATCH); long_action(): for all windows: gdk_window_set_cursor(GTK_WIDGET(window)->window

Re: how to display "busy" cursor ? and another question

2008-10-05 Thread Han
Thanks Allin. I tried your example code and it somehow did not work for me, i.e. the cursor does not show "watch". However, I am running my code on nokia maemo platform, which might impact the result. besides, I have a question inline: On Sat, Oct 4, 2008 at 12:13 PM, Allin Cottrell <[EMAIL PRO

Re: how to display "busy" cursor ? and another question

2008-10-04 Thread Allin Cottrell
On Sat, 4 Oct 2008, Han wrote: > I have a couple of questions when learning to program GTK+ : > > 1) How can I display a "busy" cursor to users ? The reason is that I > need to perform a task and cannot response to users for a few seconds. Something like this, maybe: void busy_stuff () { G

how to display "busy" cursor ? and another question

2008-10-04 Thread Han
Hi, I have a couple of questions when learning to program GTK+ : 1) How can I display a "busy" cursor to users ? The reason is that I need to perform a task and cannot response to users for a few seconds. 2) Is GTK+ window main loop (gtk_main) multi-threaded ? If not, is there a recommended w