summaryrefslogtreecommitdiff
path: root/atk.override
Commit message (Collapse)AuthorAgeFilesLines
* fix up property listing.James Henstridge2002-03-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | 2002-03-16 James Henstridge <james@daa.com.au> * pygtype.c (add_property_docs): fix up property listing. * gtk/libglade.override: add modulename directive. * gtk/gdk.override: add modulename directive. * gtk/gtk.override: add modulename directive. * atk.override: add modulename directive. * pango.override: add modulename directive. * codegen/codegen.py (write_class): if override.modulename is set, put it into the classname. (write_interface): same here. (write_boxed): same here. (write_pointer): same here. * codegen/override.py (Overrides.__parse_override): add support for a "modulename" directive for overrides files.
* remove unused variable.James Henstridge2002-03-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-03-16 James Henstridge <james@daa.com.au> * atk.override (_wrap_atk_relation_new): remove unused variable. * gtk/gtk-types.defs (Window): transient_parent field is a GtkWindow, rather than a GtkWidget. * gtk/gtk.override (_wrap_gtk_ctree_node_tp_getattr): same here. * gtk/gdk.override (_wrap_gdk_event_tp_getattr): change to "override-slot". * codegen/codegen.py (slots_list): a list of slots that we allow overriding of. (typetmpl): add extra substs for some slots. (write_class): add code that sets up the slot substitutions. (interfacetypetmpl): add slot substitutions. (boxedtmpl): add slot substitutions. (write_interface): add code to set slots. (write_interface): add code to set slots, and get rid of the old getattr handling. * codegen/override.py (Overrides.__parse_override): add support for an "override-slot" section to overrides file for overriding a slot in the PyTypeObject vtable. * gtk/gtk.override (_wrap_gtk_selection_data_get_text): add an override for this -- it was the only one correctly making use of * codegen/argtypes.py (UCharArg.write_param): unimplement. (guchar *) does not mean unicode, and often uchar returns are just date (eg. pixbuf data). gtk_selection_data_get_text is the exception.
* fixed the constructor so it actually worksMatt Wilson2001-11-281-8/+10
| | | | | | | | | | | | | 2001-11-28 Matt Wilson <msw@redhat.com> * atk.override (_wrap_atk_relation_new): fixed the constructor so it actually works * gtk/Makefile.am ($(srcdir)/gtk.c): get the atk types * gtk/gtk.override: import atk.Object as PyAtkObject_Type * Makefile.am (EXTRA_DIST): added examples/atk/atk-demo.py
* added start of atk wrapperMatt Wilson2001-11-271-0/+54
2001-11-27 Matt Wilson <msw@redhat.com> * atk.defs, atk.override, atkmodule.c: added start of atk wrapper * gtk/Makefile.am (DISTCLEANFILES): remove generated files ($(srcdir)/gtk.c): modify targets to output generated files in the builddir, not the srcdir. ($(srcdir)/gdk.c): likewise. ($(srcdir)/libglade.c): likewise. * codegen/h2def.py (define_func): add check to workaround broken string.replace semantics on python 1.5 * codegen/codegen.py (write_enums): if the enum or flag doesn't have a GType, just add those enum values listed in the defs file by hand. * codegen/argtypes.py (ArgMatcher.register_enum): if defs file doesn't specify a GType for the enum, use G_TYPE_NONE. (ArgMatcher.register_flag): likewise. * gobjectmodule.c (pyg_enum_get_value): allow enums to pass G_TYPE_NONE in as the type, disabling the string to value conversion. (pyg_flags_get_value): likewise. (pyg_constant_strip_prefix): new function to combine common codepath. (pyg_enum_add_constants): use pyg_constant_strip_prefix (pyg_flags_add_constants): likewise. (functions): make pyg_constant_strip_prefix available to users of pygobject * pygobject.h: added pyg_constant_strip_prefix wrapper * configure.in: added ATK test, subst for ATK_CFLAGS and ATK_LIBS. * Makefile.am (%.c): added generic codegen target for pango and atk. Added DISTCLEANFILES so that generated files will be removed. Added atk targets, cflags, ldflags.