| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

View
 

Contribute

Page history last edited by PBworks 15 years, 3 months ago

Contribute

 

If you wish to make changes to both platform files and Squeak code, please send us any changeset or bug report and we'll accomplish your request for the benefits of the project.

 

If you ever want to wrap Gtk+ functions, take a look at the GtkPrimGenerator class, which auto generates primitives from headers. Here's an example:

 

header _ 'GtkEntry* gtk_entry_new (void);'.

(GtkPrimGenerator fromHeader: header) install

 

Then you'll find #primitiveGtkEntryNew: in GtkPlugin and #primGtkEntryNew: in GtkEntry.

For multiple headers:

 

headers _ '....;.......;......;'.

(GtkPrimGenerator fromMultipleHeaders: headers) do: [ :ea | ea install ]

 

NB: for multiple headers, no matter if there are spaces, tabs or new lines in the declarations, the most important thing is that only at the end of the headers there are no spaces.

 

Thanks for ANY contribute you'll send us :)

Comments (0)

You don't have permission to comment on this page.