This is the mail archive of the guile-gtk@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch to make guile-gtk work with upcoming guile-1.4


"Greg J. Badros" <gjb@cs.washington.edu> writes:

> +  tc16_gtkobj_marker_hook = scm_make_smob_type_mfpe("gtkobj_marker_hook",
> +                                                    sizeof(sgtk_object_proxy),
> +                                                    gtkobj_marker_hook,
> +                                                    NULL,
> +                                                    gtkobj_marker_hook_print,
> +                                                    NULL);

(Thanks to Greg for the patch.)

Just a small comment:

The `scm_make_smob_type_mfpe' function has not been mentioned in the
NEWS file because it might become deprecated in next release of Guile.

Please instead use the standard interface:

tc16_gtkobj_marker_hook = scm_make_smob_type ("gtkobj_marker_hook",
                                              sizeof (sgtk_object_proxy));
scm_set_smob_mark (tc16_gtkobj_marker_hook, gtkobj_marker_hook);
scm_set_smob_print (tc16_gtkobj_marker_hook, gtkobj_marker_hook_print);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]