diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-01-01 23:29:05 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-01-01 23:29:05 +0000 |
commit | 60ea0d10e212d17c5a790b6855bdaab8a29824fe (patch) | |
tree | 8a69aca369f7c1da34c797a24f579aa01634fc9b /gtk/compat_macros.h | |
parent | f7a9294fabb89a7f48fa98a8dfaf9f48102710fe (diff) |
Don't explicitly cast the last argument to OBJECT_SET_DATA() to
"gpointer" - callers should do that if appropriate (or perhaps change
the call to pass a different argument if that's more appropriate), and
even if casting it were the right thing to do, the argument needs to be
surrounded with parentheses so the correct value is cast.
svn path=/trunk/; revision=12919
Diffstat (limited to 'gtk/compat_macros.h')
-rw-r--r-- | gtk/compat_macros.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/compat_macros.h b/gtk/compat_macros.h index eaf967448b..44f7465595 100644 --- a/gtk/compat_macros.h +++ b/gtk/compat_macros.h @@ -84,7 +84,7 @@ gtk_signal_disconnect_by_func(GTK_OBJECT(object), func, data) * @param data data to associate with that key */ #define OBJECT_SET_DATA(widget, key, data) \ -gtk_object_set_data(GTK_OBJECT(widget), key, (gpointer)data) +gtk_object_set_data(GTK_OBJECT(widget), key, (data)) /** Get a named field from the object's table of associations (the object_data). * @@ -261,7 +261,7 @@ g_signal_connect_swapped(G_OBJECT(widget), name, G_CALLBACK(callback), \ g_signal_handlers_disconnect_by_func(G_OBJECT(object), func, data) #define OBJECT_SET_DATA(widget, key, data) \ -g_object_set_data(G_OBJECT(widget), key, (gpointer)data) +g_object_set_data(G_OBJECT(widget), key, (data)) #define OBJECT_GET_DATA(widget, key) \ g_object_get_data(G_OBJECT(widget), key) |