Mercurial > pidgin
comparison src/gtkblist.c @ 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 | 74f449e10d88 |
children | 1246935dd047 |
comparison
equal
deleted
inserted
replaced
12568:17a85606bcc8 | 12569:853e85b6d98c |
---|---|
1385 return handled; | 1385 return handled; |
1386 } | 1386 } |
1387 | 1387 |
1388 static void gaim_gtk_blist_buddy_details_cb(gpointer data, guint action, GtkWidget *item) | 1388 static void gaim_gtk_blist_buddy_details_cb(gpointer data, guint action, GtkWidget *item) |
1389 { | 1389 { |
1390 gaim_prefs_set_bool("/gaim/gtk/blist/show_buddy_icons", | 1390 if (gtkblist->window->window) |
1391 gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(item))); | 1391 { |
1392 } | |
1393 | |
1394 static void gaim_gtk_blist_show_empty_groups_cb(gpointer data, guint action, GtkWidget *item) | |
1395 { | |
1396 gaim_prefs_set_bool("/gaim/gtk/blist/show_empty_groups", | |
1397 gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(item))); | |
1398 } | |
1399 | |
1400 static void gaim_gtk_blist_edit_mode_cb(gpointer callback_data, guint callback_action, | |
1401 GtkWidget *checkitem) { | |
1402 if(gtkblist->window->window) { | |
1403 GdkCursor *cursor = gdk_cursor_new(GDK_WATCH); | 1392 GdkCursor *cursor = gdk_cursor_new(GDK_WATCH); |
1404 gdk_window_set_cursor(gtkblist->window->window, cursor); | 1393 gdk_window_set_cursor(gtkblist->window->window, cursor); |
1405 while (gtk_events_pending()) | 1394 while (gtk_events_pending()) |
1406 gtk_main_iteration(); | 1395 gtk_main_iteration(); |
1407 gdk_cursor_unref(cursor); | 1396 gdk_cursor_unref(cursor); |
1408 } | 1397 } |
1409 | 1398 |
1399 gaim_prefs_set_bool("/gaim/gtk/blist/show_buddy_icons", | |
1400 gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(item))); | |
1401 | |
1402 if (gtkblist->window->window) | |
1403 gdk_window_set_cursor(gtkblist->window->window, NULL); | |
1404 } | |
1405 | |
1406 static void gaim_gtk_blist_show_empty_groups_cb(gpointer data, guint action, GtkWidget *item) | |
1407 { | |
1408 if (gtkblist->window->window) | |
1409 { | |
1410 GdkCursor *cursor = gdk_cursor_new(GDK_WATCH); | |
1411 gdk_window_set_cursor(gtkblist->window->window, cursor); | |
1412 while (gtk_events_pending()) | |
1413 gtk_main_iteration(); | |
1414 gdk_cursor_unref(cursor); | |
1415 } | |
1416 | |
1417 gaim_prefs_set_bool("/gaim/gtk/blist/show_empty_groups", | |
1418 gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(item))); | |
1419 | |
1420 if (gtkblist->window->window) | |
1421 gdk_window_set_cursor(gtkblist->window->window, NULL); | |
1422 } | |
1423 | |
1424 static void gaim_gtk_blist_edit_mode_cb(gpointer callback_data, guint callback_action, | |
1425 GtkWidget *checkitem) | |
1426 { | |
1427 if (gtkblist->window->window) | |
1428 { | |
1429 GdkCursor *cursor = gdk_cursor_new(GDK_WATCH); | |
1430 gdk_window_set_cursor(gtkblist->window->window, cursor); | |
1431 while (gtk_events_pending()) | |
1432 gtk_main_iteration(); | |
1433 gdk_cursor_unref(cursor); | |
1434 } | |
1435 | |
1410 gaim_prefs_set_bool("/gaim/gtk/blist/show_offline_buddies", | 1436 gaim_prefs_set_bool("/gaim/gtk/blist/show_offline_buddies", |
1411 gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(checkitem))); | 1437 gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(checkitem))); |
1412 | 1438 |
1413 if(gtkblist->window->window) { | 1439 if (gtkblist->window->window) |
1414 gdk_window_set_cursor(gtkblist->window->window, NULL); | 1440 gdk_window_set_cursor(gtkblist->window->window, NULL); |
1415 } | |
1416 } | 1441 } |
1417 | 1442 |
1418 static void gaim_gtk_blist_mute_sounds_cb(gpointer data, guint action, GtkWidget *item) | 1443 static void gaim_gtk_blist_mute_sounds_cb(gpointer data, guint action, GtkWidget *item) |
1419 { | 1444 { |
1420 gaim_prefs_set_bool("/gaim/gtk/sound/mute", GTK_CHECK_MENU_ITEM(item)->active); | 1445 gaim_prefs_set_bool("/gaim/gtk/sound/mute", GTK_CHECK_MENU_ITEM(item)->active); |