Mercurial > pidgin.yaz
diff src/gtkutils.h @ 13434:ffd724befbf8
[gaim-migrate @ 15809]
Cleanup the busy cursor handling code to eliminate a bunch of these loops:
while (gtk_events_pending())
gtk_main_iteration();
They seem like a race condition waiting to happen. This code is also simpler,
and more generic.
This leaves only one such loop, in src/gtkblist.c's gaim_gtk_blist_expand_contact_cb().
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Tue, 07 Mar 2006 05:48:54 +0000 |
parents | 2e6dda9f9159 |
children | 689f652480f7 |
line wrap: on
line diff
--- a/src/gtkutils.h Tue Mar 07 05:09:51 2006 +0000 +++ b/src/gtkutils.h Tue Mar 07 05:48:54 2006 +0000 @@ -438,4 +438,28 @@ void gaim_gtk_append_menu_action(GtkWidget *menu, GaimMenuAction *act, gpointer gobject); +/** + * Sets the mouse pointer for a GtkWidget. + * + * After setting the cursor, the display is flushed, so the change will + * take effect immediately. + * + * If @a widget is @c NULL, this function simply returns. + * + * @param widget The widget for which to set the mouse pointer + * @param cursor_type The type of cursor to set + */ +void gaim_gtk_set_cursor(GtkWidget *widget, GdkCursorType cursor_type); + +/** + * Sets the mouse point for a GtkWidget back to that of its parent window. + * + * If @a widget is @c NULL, this function simply returns. + * + * @param widget The widget for which to clear the cursor + * + * @note The display is not flushed from this function. + */ +void gaim_gtk_clear_cursor(GtkWidget *widget); + #endif /* _GAIM_GTKUTILS_H_ */