Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 13433:7ef6a2d0d9da | 13434:ffd724befbf8 |
|---|---|
| 436 * @return The menu. | 436 * @return The menu. |
| 437 */ | 437 */ |
| 438 void gaim_gtk_append_menu_action(GtkWidget *menu, GaimMenuAction *act, | 438 void gaim_gtk_append_menu_action(GtkWidget *menu, GaimMenuAction *act, |
| 439 gpointer gobject); | 439 gpointer gobject); |
| 440 | 440 |
| 441 /** | |
| 442 * Sets the mouse pointer for a GtkWidget. | |
| 443 * | |
| 444 * After setting the cursor, the display is flushed, so the change will | |
| 445 * take effect immediately. | |
| 446 * | |
| 447 * If @a widget is @c NULL, this function simply returns. | |
| 448 * | |
| 449 * @param widget The widget for which to set the mouse pointer | |
| 450 * @param cursor_type The type of cursor to set | |
| 451 */ | |
| 452 void gaim_gtk_set_cursor(GtkWidget *widget, GdkCursorType cursor_type); | |
| 453 | |
| 454 /** | |
| 455 * Sets the mouse point for a GtkWidget back to that of its parent window. | |
| 456 * | |
| 457 * If @a widget is @c NULL, this function simply returns. | |
| 458 * | |
| 459 * @param widget The widget for which to clear the cursor | |
| 460 * | |
| 461 * @note The display is not flushed from this function. | |
| 462 */ | |
| 463 void gaim_gtk_clear_cursor(GtkWidget *widget); | |
| 464 | |
| 441 #endif /* _GAIM_GTKUTILS_H_ */ | 465 #endif /* _GAIM_GTKUTILS_H_ */ |
