Commit 9bdbd2ff authored by Raja R Harinath's avatar Raja R Harinath

Backward compatibility defines for people using gtk+ 1.0.

* panel.h (GPOINTER_TO_INT,GINT_TO_POINTER):
Backward compatibility defines for people using gtk+ 1.0.
parent 2f47ae42
1998-07-16 Raja R Harinath <harinath@cs.umn.edu>
* panel.h (GPOINTER_TO_INT,GINT_TO_POINTER):
Backward compatibility defines for people using gtk+ 1.0.
1998-07-15 Raja R Harinath <harinath@cs.umn.edu>
* panel.h (ITOP,PTOI): Remove defines. `glib' provides the same
......
1998-07-16 Raja R Harinath <harinath@cs.umn.edu>
* panel.h (GPOINTER_TO_INT,GINT_TO_POINTER):
Backward compatibility defines for people using gtk+ 1.0.
1998-07-15 Raja R Harinath <harinath@cs.umn.edu>
* panel.h (ITOP,PTOI): Remove defines. `glib' provides the same
......
......@@ -141,6 +141,17 @@ extern char *cookie;
((applet_id>=0 && applet_id<applet_count) ? \
(&g_array_index(applets,AppletInfo,applet_id)):NULL)
/* Gross backward compatibility hack. */
#ifndef GPOINTER_TO_INT
# if SIZEOF_INT == SIZEOF_VOID_P
# define GPOINTER_TO_INT(p) ((gint)(p))
# define GINT_TO_POINTER(i) ((gpointer)(i))
# elif SIZEOF_LONG == SIZEOF_VOID_P
# define GPOINTER_TO_INT(p) ((gint)(glong)(p))
# define GINT_TO_POINTER(i) ((gpointer)(glong)(i))
# endif /* SIZEOF_INT */
#endif /* GPOINTER_TO_INT */
END_GNOME_DECLS
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment