Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/src/gtkblist.c Wed Jan 11 03:42:22 2006 +0000 +++ b/src/gtkblist.c Wed Jan 11 04:32:12 2006 +0000 @@ -1485,13 +1485,17 @@ gaim_prefs_set_bool("/gaim/gtk/sound/mute", GTK_CHECK_MENU_ITEM(item)->active); } -static void gaim_gtk_blist_mute_pref_cb(const char *name, GaimPrefType type, gpointer value, gpointer data) +static void +gaim_gtk_blist_mute_pref_cb(const char *name, GaimPrefType type, + gconstpointer value, gpointer data) { gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(gtk_item_factory_get_item(gtkblist->ift, N_("/Tools/Mute Sounds"))), (gboolean)GPOINTER_TO_INT(value)); } -static void gaim_gtk_blist_sound_method_pref_cb(const char *name, GaimPrefType type, gpointer value, gpointer data) +static void +gaim_gtk_blist_sound_method_pref_cb(const char *name, GaimPrefType type, + gconstpointer value, gpointer data) { gboolean sensitive = TRUE; @@ -3418,7 +3422,7 @@ static void show_buddy_icons_pref_cb(const char *name, GaimPrefType type, - gpointer val, gpointer data) + gconstpointer val, gpointer data) { gaim_gtk_blist_update_columns(); } @@ -3455,7 +3459,7 @@ } static void _prefs_change_sort_method(const char *pref_name, GaimPrefType type, - gpointer val, gpointer data) + gconstpointer val, gpointer data) { if(!strcmp(pref_name, "/gaim/gtk/blist/sort_type")) gaim_gtk_blist_sort_method_set(val);