comparison src/gtkdialogs.c @ 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 55c3530f4e72
children b03f19de58b8
comparison
equal deleted inserted replaced
13433:7ef6a2d0d9da 13434:ffd724befbf8
735 gaim_request_fields_get_string(fields, "screenname"))); 735 gaim_request_fields_get_string(fields, "screenname")));
736 736
737 if (username != NULL && *username != '\0' && account != NULL) 737 if (username != NULL && *username != '\0' && account != NULL)
738 { 738 {
739 GaimGtkBuddyList *gtkblist = gaim_gtk_blist_get_default_gtk_blist(); 739 GaimGtkBuddyList *gtkblist = gaim_gtk_blist_get_default_gtk_blist();
740 GdkCursor *cursor = gdk_cursor_new(GDK_WATCH); 740
741 741 gaim_gtk_set_cursor(gtkblist->window, GDK_WATCH);
742 gdk_window_set_cursor(gtkblist->window->window, cursor);
743 gdk_cursor_unref(cursor);
744 while (gtk_events_pending())
745 gtk_main_iteration();
746 742
747 gaim_gtk_log_show(GAIM_LOG_IM, username, account); 743 gaim_gtk_log_show(GAIM_LOG_IM, username, account);
748 744
749 gdk_window_set_cursor(gtkblist->window->window, NULL); 745 gaim_gtk_clear_cursor(gtkblist->window);
750 } 746 }
751 747
752 g_free(username); 748 g_free(username);
753 } 749 }
754 750