diff options
author | Manish Singh <yosh@gimp.org> | 2005-03-01 22:25:42 +0000 |
---|---|---|
committer | Manish Singh <yosh@src.gnome.org> | 2005-03-01 22:25:42 +0000 |
commit | de1e169e44b200fa4ac6d2848014056c6efe37e7 (patch) | |
tree | 448307699d884dd9634087ef37c70ccbe0a2257a /gdk | |
parent | 5fed4b4afd515c81022e0357f5e01240327c170b (diff) | |
download | gtk+-de1e169e44b200fa4ac6d2848014056c6efe37e7.tar.gz |
Cast to avoid const warnings on data structure seeding.
Tue Mar 1 14:04:08 2005 Manish Singh <yosh@gimp.org>
* gdk/x11/gdkproperty-x11.c (virtual_atom_check_init): Cast to avoid
const warnings on data structure seeding.
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/x11/gdkproperty-x11.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/x11/gdkproperty-x11.c b/gdk/x11/gdkproperty-x11.c index 6ab6c2c626..dba6a080e7 100644 --- a/gdk/x11/gdkproperty-x11.c +++ b/gdk/x11/gdkproperty-x11.c @@ -347,8 +347,8 @@ virtual_atom_check_init (void) for (i = 0; i < G_N_ELEMENTS (XAtomsStrings); i++) { - g_ptr_array_add (virtual_atom_array, XAtomsStrings[i]); - g_hash_table_insert (virtual_atom_hash, XAtomsStrings[i], + g_ptr_array_add (virtual_atom_array, (gchar *) XAtomsStrings[i]); + g_hash_table_insert (virtual_atom_hash, (gchar *) XAtomsStrings[i], GUINT_TO_POINTER (i)); } } |