setting the wait mouse cursor during a longer load operation
- From: Stefan Kost <kost imn htwk-leipzig de>
- To: gtk-app-devel-list gnome org
- Subject: setting the wait mouse cursor during a longer load operation
- Date: Tue, 14 Sep 2004 15:52:16 +0200
hi,
when loading a long file I would like to disabled events for the main-window and
set a wait mouse-coursor for it. That they way I've tried it.
GdkWindow *window;
gtk_widget_set_sensitive(GTK_WIDGET(self->private->main_window),FALSE);
// does not work -> (gdk_window_set_cursor): assertion `window != NULL' failed
window=gtk_window_get_transient_for(GTK_WINDOW(self->private->main_window));
gdk_window_set_cursor(window,gdk_cursor_new(GDK_WATCH));
... invoke the loading
gdk_window_set_cursor(window,NULL);
gtk_widget_set_sensitive(GTK_WIDGET(self->private->main_window),TRUE);
I manage to change the cursor for other windows (that are not mine!).
Hwen I got diffenrent mouse-cursors, then they neverr looked like the requested
ones.
Any ideas?
Stefan
--
\|/ Stefan Kost
<@ @> private business
+-oOO-(_)-OOo------------------------------------------------------ - - - - -
| __ Address Simildenstr. 5 HTWK Leipzig, Fb IMN, Postfach 301166
| /// 04277 Leipzig 04251 Leipzig
| __ /// Germany Germany
| \\\/// Phone +49341 2253538 +49341 30766101
| \__/ EMail st_kost_at_gmx.net kost_at_imn.htwk-leipzig.de
| WWW www.sonicpulse.de www.imn.htwk-leipzig.de/~kost/about.html
===-=-=--=---=---------------------------------- - - - - -
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]