pidgin: 49d53423: Fix some warnings:

rlaager at pidgin.im rlaager at pidgin.im
Wed Oct 29 23:25:25 EDT 2008


-----------------------------------------------------------------
Revision: 49d534235ea04353fa7f508ec9712aab800d232c
Ancestor: b19f951fd23cfcbd3e8b7806ebe6f20c9478f1ac
Author: rlaager at pidgin.im
Date: 2008-10-30T03:04:09
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/49d534235ea04353fa7f508ec9712aab800d232c

Modified files:
        pidgin/gtkprefs.c

ChangeLog: 

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

-------------- next part --------------
============================================================
--- pidgin/gtkprefs.c	8809e6b4d86c5a2d7b5d4242747b3c536a53a078
+++ pidgin/gtkprefs.c	a83069e6a0019e2f44bec6932a7c79aaada767e5
@@ -1836,14 +1836,14 @@ mute_changed_cb(const char *pref_name,
                 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);
 }
 
 


More information about the Commits mailing list