Mercurial > pidgin
comparison src/gtkdialogs.c @ 12232:375f1f3817a8
[gaim-migrate @ 14534]
Displaying large logs is slow. Let's show the busy cursor whenever possible. This currently doesn't show the busy cursor over the IMHTMLs in a conversation window even though I set a busy cursor for the conversation window. I looked into fixing that, but I'm not sure exactly what the best way to deal with it is.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 27 Nov 2005 03:20:35 +0000 |
parents | 9b06c216e362 |
children | af19076ff770 |
comparison
equal
deleted
inserted
replaced
12231:c342eb6e8cd3 | 12232:375f1f3817a8 |
---|---|
29 #include "notify.h" | 29 #include "notify.h" |
30 #include "prpl.h" | 30 #include "prpl.h" |
31 #include "request.h" | 31 #include "request.h" |
32 #include "util.h" | 32 #include "util.h" |
33 | 33 |
34 #include "gtkblist.h" | |
34 #include "gtkdialogs.h" | 35 #include "gtkdialogs.h" |
35 #include "gtkimhtml.h" | 36 #include "gtkimhtml.h" |
36 #include "gtkimhtmltoolbar.h" | 37 #include "gtkimhtmltoolbar.h" |
37 #include "gtklog.h" | 38 #include "gtklog.h" |
38 #include "gtkutils.h" | 39 #include "gtkutils.h" |
674 account = gaim_request_fields_get_account(fields, "account"); | 675 account = gaim_request_fields_get_account(fields, "account"); |
675 | 676 |
676 username = g_strdup(gaim_normalize(account, | 677 username = g_strdup(gaim_normalize(account, |
677 gaim_request_fields_get_string(fields, "screenname"))); | 678 gaim_request_fields_get_string(fields, "screenname"))); |
678 | 679 |
679 if(username != NULL && *username != '\0' && account != NULL ) | 680 if (username != NULL && *username != '\0' && account != NULL) |
681 { | |
682 GaimGtkBuddyList *gtkblist = gaim_gtk_blist_get_default_gtk_blist(); | |
683 GdkCursor *cursor = gdk_cursor_new(GDK_WATCH); | |
684 | |
685 gdk_window_set_cursor(gtkblist->window->window, cursor); | |
686 gdk_cursor_unref(cursor); | |
687 while (gtk_events_pending()) | |
688 gtk_main_iteration(); | |
689 | |
680 gaim_gtk_log_show(GAIM_LOG_IM, username, account); | 690 gaim_gtk_log_show(GAIM_LOG_IM, username, account); |
691 | |
692 gdk_window_set_cursor(gtkblist->window->window, NULL); | |
693 } | |
681 | 694 |
682 g_free(username); | 695 g_free(username); |
683 } | 696 } |
684 | 697 |
685 /* | 698 /* |