Mercurial > pidgin.yaz
changeset 12569:853e85b6d98c
[gaim-migrate @ 14888]
Show busy cursors for changing the buddy list options in the buddies menu.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 19 Dec 2005 21:03:56 +0000 |
parents | 17a85606bcc8 |
children | f6762269699a |
files | src/gtkblist.c |
diffstat | 1 files changed, 29 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkblist.c Mon Dec 19 20:58:41 2005 +0000 +++ b/src/gtkblist.c Mon Dec 19 21:03:56 2005 +0000 @@ -1387,19 +1387,45 @@ static void gaim_gtk_blist_buddy_details_cb(gpointer data, guint action, GtkWidget *item) { + if (gtkblist->window->window) + { + GdkCursor *cursor = gdk_cursor_new(GDK_WATCH); + gdk_window_set_cursor(gtkblist->window->window, cursor); + while (gtk_events_pending()) + gtk_main_iteration(); + gdk_cursor_unref(cursor); + } + gaim_prefs_set_bool("/gaim/gtk/blist/show_buddy_icons", gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(item))); + + if (gtkblist->window->window) + gdk_window_set_cursor(gtkblist->window->window, NULL); } static void gaim_gtk_blist_show_empty_groups_cb(gpointer data, guint action, GtkWidget *item) { + if (gtkblist->window->window) + { + GdkCursor *cursor = gdk_cursor_new(GDK_WATCH); + gdk_window_set_cursor(gtkblist->window->window, cursor); + while (gtk_events_pending()) + gtk_main_iteration(); + gdk_cursor_unref(cursor); + } + gaim_prefs_set_bool("/gaim/gtk/blist/show_empty_groups", gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(item))); + + if (gtkblist->window->window) + gdk_window_set_cursor(gtkblist->window->window, NULL); } static void gaim_gtk_blist_edit_mode_cb(gpointer callback_data, guint callback_action, - GtkWidget *checkitem) { - if(gtkblist->window->window) { + GtkWidget *checkitem) +{ + if (gtkblist->window->window) + { GdkCursor *cursor = gdk_cursor_new(GDK_WATCH); gdk_window_set_cursor(gtkblist->window->window, cursor); while (gtk_events_pending()) @@ -1410,9 +1436,8 @@ gaim_prefs_set_bool("/gaim/gtk/blist/show_offline_buddies", gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(checkitem))); - if(gtkblist->window->window) { + if (gtkblist->window->window) gdk_window_set_cursor(gtkblist->window->window, NULL); - } } static void gaim_gtk_blist_mute_sounds_cb(gpointer data, guint action, GtkWidget *item)