Mercurial > pidgin
changeset 24316:460568fa4dfc
Fix some warnings:
gtkprefs.c: In function ¡Æmute_changed_cb¡Ç:
gtkprefs.c:1839: warning: initialization makes integer from pointer without a cast
gtkprefs.c:1844: warning: passing argument 7 of ¡Æg_signal_handlers_block_matched¡Ç discards qualifiers from pointer target type
gtkprefs.c:1846: warning: passing argument 7 of ¡Æg_signal_handlers_unblock_matched¡Ç discards qualifiers from pointer target type
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 30 Oct 2008 03:04:09 +0000 |
parents | 848542528965 |
children | 750f9b4d8547 |
files | pidgin/gtkprefs.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkprefs.c Thu Oct 30 02:36:22 2008 +0000 +++ b/pidgin/gtkprefs.c Thu Oct 30 03:04:09 2008 +0000 @@ -1836,14 +1836,14 @@ gpointer data) { GtkToggleButton *button = data; - gboolean muted = val; + gboolean muted = GPOINTER_TO_INT(val); g_return_if_fail(!strcmp (pref_name, PIDGIN_PREFS_ROOT "/sound/mute")); /* Block the handler that re-sets the preference. */ - g_signal_handlers_block_matched(button, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, pref_name); + g_signal_handlers_block_matched(button, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, (gpointer)pref_name); gtk_toggle_button_set_active (button, muted); - g_signal_handlers_unblock_matched(button, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, pref_name); + g_signal_handlers_unblock_matched(button, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, (gpointer)pref_name); }