comparison src/gtkblist.c @ 12816:ff267281e882

[gaim-migrate @ 15164] Get rid of a compile warning by changing the definition of (*GaimPrefCallback) to pass a gconstpointer val instead of gpointer committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 11 Jan 2006 04:32:12 +0000
parents 6234099a4b37
children c0fbdea8828b
comparison
equal deleted inserted replaced
12815:a8bffa7fb6ac 12816:ff267281e882
1483 static void gaim_gtk_blist_mute_sounds_cb(gpointer data, guint action, GtkWidget *item) 1483 static void gaim_gtk_blist_mute_sounds_cb(gpointer data, guint action, GtkWidget *item)
1484 { 1484 {
1485 gaim_prefs_set_bool("/gaim/gtk/sound/mute", GTK_CHECK_MENU_ITEM(item)->active); 1485 gaim_prefs_set_bool("/gaim/gtk/sound/mute", GTK_CHECK_MENU_ITEM(item)->active);
1486 } 1486 }
1487 1487
1488 static void gaim_gtk_blist_mute_pref_cb(const char *name, GaimPrefType type, gpointer value, gpointer data) 1488 static void
1489 gaim_gtk_blist_mute_pref_cb(const char *name, GaimPrefType type,
1490 gconstpointer value, gpointer data)
1489 { 1491 {
1490 gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(gtk_item_factory_get_item(gtkblist->ift, 1492 gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(gtk_item_factory_get_item(gtkblist->ift,
1491 N_("/Tools/Mute Sounds"))), (gboolean)GPOINTER_TO_INT(value)); 1493 N_("/Tools/Mute Sounds"))), (gboolean)GPOINTER_TO_INT(value));
1492 } 1494 }
1493 1495
1494 static void gaim_gtk_blist_sound_method_pref_cb(const char *name, GaimPrefType type, gpointer value, gpointer data) 1496 static void
1497 gaim_gtk_blist_sound_method_pref_cb(const char *name, GaimPrefType type,
1498 gconstpointer value, gpointer data)
1495 { 1499 {
1496 gboolean sensitive = TRUE; 1500 gboolean sensitive = TRUE;
1497 1501
1498 if(!strcmp(value, "none")) 1502 if(!strcmp(value, "none"))
1499 sensitive = FALSE; 1503 sensitive = FALSE;
3416 } 3420 }
3417 } 3421 }
3418 3422
3419 static void 3423 static void
3420 show_buddy_icons_pref_cb(const char *name, GaimPrefType type, 3424 show_buddy_icons_pref_cb(const char *name, GaimPrefType type,
3421 gpointer val, gpointer data) 3425 gconstpointer val, gpointer data)
3422 { 3426 {
3423 gaim_gtk_blist_update_columns(); 3427 gaim_gtk_blist_update_columns();
3424 } 3428 }
3425 3429
3426 enum { 3430 enum {
3453 { 3457 {
3454 redo_buddy_list(gaim_get_blist(), TRUE); 3458 redo_buddy_list(gaim_get_blist(), TRUE);
3455 } 3459 }
3456 3460
3457 static void _prefs_change_sort_method(const char *pref_name, GaimPrefType type, 3461 static void _prefs_change_sort_method(const char *pref_name, GaimPrefType type,
3458 gpointer val, gpointer data) 3462 gconstpointer val, gpointer data)
3459 { 3463 {
3460 if(!strcmp(pref_name, "/gaim/gtk/blist/sort_type")) 3464 if(!strcmp(pref_name, "/gaim/gtk/blist/sort_type"))
3461 gaim_gtk_blist_sort_method_set(val); 3465 gaim_gtk_blist_sort_method_set(val);
3462 } 3466 }
3463 3467