Set_cursor not updating the cursor

Hi there,

I have a signal handler member function of my main window that does some computation that takes a couple seconds. In the first line of the function definition, I used this->set_cursor("wait"); to indicate that some computation is ongoing, and the last line is this->set_cursor(""); to revert the cursor to default one.

This approach didn’t seem to work and I was wondering why.

Note: Also I have the idea of having three handlers, one for setting the cursor to wait, another for doing the computation and a final one for reverting back the cursor but this is probably not a good way of achieving this.

Figured out that I have to open another thread for the computation that is taking time and not block the GUI thread. For anyone wondering how to do that in gtkmm, here’s an example https://gnome.pages.gitlab.gnome.org/gtkmm-documentation/sec-multithread-example.html

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.