summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* bump up required versions of gtk, pango, and glib.PYGTK_1_99_5Matt Wilson2001-11-263-4/+8
| | | | | | 2001-11-26 Matt Wilson <msw@redhat.com> * configure.in: bump up required versions of gtk, pango, and glib.
* 1.99.5Matt Wilson2001-11-264-12/+36
| | | | | | | | | | | | | | | | | | | 2001-11-26 Matt Wilson <msw@redhat.com> * configure.in: 1.99.5 2001-11-20 Matt Wilson <msw@redhat.com> * gtk/gtk.defs (GtkStyle.render_icon): change size argument type to GtkIconSize. (gtk_image_new_from_stock): likewise, change from constructor to function, rename to image_new_from_stock. (gtk_image_new_from_icon_set): likewise. (gtk_image_new_from_animation): change from constructor to function, rename to image_new_from_animation. Should these just go in as an overloaded constructor for GtkImage()? (icon_source_new): is-constructor-of GtkIconSource (icon_set_new): is-constructor-of GtkIconSet
* fix indention. (write_getsets): use the handler's error handling codeMatt Wilson2001-11-192-4/+10
| | | | | | | | 2001-11-19 Matt Wilson <msw@redhat.com> * codegen/codegen.py (attrchecktmpl): fix indention. (write_getsets): use the handler's error handling code snippits. (write_boxed_getattr): likewise.
* fixed think-o, don't store a pointer to the function pointer, just storeMatt Wilson2001-11-193-6/+10
| | | | | | | | 2001-11-19 Matt Wilson <msw@redhat.com> * gobjectmodule.c (pyg_fatal_exceptions_notify_{add,remove}): fixed think-o, don't store a pointer to the function pointer, just store the function pointer.
* renamed to set_font_map (PangoFontMap.load_font): added context argumentMatt Wilson2001-11-192-1/+7
| | | | | | | 2001-11-19 Matt Wilson <msw@redhat.com> * pango.defs (PangoContext.add_font_map): renamed to set_font_map (PangoFontMap.load_font): added context argument
* added GtkTreeView.get_columns, GtkTreeView.move_column_after,Matt Wilson2001-11-182-0/+143
| | | | | | | | | | | | | | 2001-11-17 Matt Wilson <msw@redhat.com> * gtk/gtk.defs: added GtkTreeView.get_columns, GtkTreeView.move_column_after, GtkTreeView.map_expanded_rows, GtkTreeView.row_expanded, GtkTreeView.get_cursor, GtkTreeView.get_bin_window, GtkTreeView.enable_model_drag_source, GtkTreeView.enable_model_drag_dest, GtkTreeView.set_enable_search, GtkTreeView.get_enable_search, GtkTreeView.get_search_column, GtkTreeView.set_search_column, GtkTreeView.get_search_equal_func, GtkTreeView.set_search_equal_func, GtkTreeView.set_destroy_count_func
* pass in any error checking and handling code snippets into the returnMatt Wilson2001-11-186-58/+174
| | | | | | | | | | | | | | | | | | | | | | | 2001-11-17 Matt Wilson <msw@redhat.com> * codegen/codegen.py (write_*): pass in any error checking and handling code snippets into the return function writer. Only add keywords for arguments that are going to be parsed, Python 2.2 now checks to make sure the kwlist length equals the paramspec. * codegen/argtypes.py: remove GtkCTreeNode custom registration, it's a generic boxed type. Added a GErrorType requested in bug #63980. This requires inserting possible error checking in each type's write_return method. * gtk/gtk.defs (gtk_image_new_from_icon_set): changed size argument from char* to GtkIconSize (GtkIconSet.render_icon): likewise * gtk/gtk-types.defs (IconSet): added GtkIconSet boxed type * gtk/gtk.override (_wrap_gtk_tree_model_get_value): value is not parsed, remove it from the kwlist.
* remove window argumentMatt Wilson2001-11-163-3/+6
| | | | | | | | | 2001-11-16 Matt Wilson <msw@redhat.com> * gtk/gtk.override (_wrap_gtk_tree_view_get_path_at_pos): remove window argument * gtk/gtk.defs (GtkTreeView.get_path_at_pos): remove window argument
* s/g_param_get_{name,nick,blurb}/g_param_spec_get_{name,nick,blurb}/gMatt Wilson2001-11-163-10/+14
| | | | | | | | 2001-11-16 Matt Wilson <msw@redhat.com> * gobjectmodule.c (pyg_param_spec_getattr, pyg_param_spec_repr): s/g_param_get_{name,nick,blurb}/g_param_spec_get_{name,nick,blurb}/g (pyg_fatal_exceptions_notify_remove): use the right type.
* need to cast to the right type for _PyGTK_API init.Matt Wilson2001-11-162-1/+6
| | | | | | | 2001-11-16 Matt Wilson <msw@redhat.com> * gtk/pygtk.h (init_pygtk): need to cast to the right type for _PyGTK_API init.
* initialize pos to 0, make pos an optional argument. #64087Matt Wilson2001-11-153-4/+8
| | | | | | | | | | 2001-11-15 Matt Wilson <msw@redhat.com> * gtk/gtk.override (_wrap_gtk_editable_insert_text): initialize pos to 0, make pos an optional argument. #64087 * gtk/gtk.defs (GtkEditable.insert_text): note default for position to be 0.
* added gtk.major_version, gtk.minor_version, and gtk.micro_version. #59830.Matt Wilson2001-11-152-1/+22
| | | | | | | 2001-11-15 Matt Wilson <msw@redhat.com> * gtk/gtkmodule.c (init_gtk): added gtk.major_version, gtk.minor_version, and gtk.micro_version. #59830.
* cast void* to _PyGtk_FunctionStruct* when retrieving the API struct,Matt Wilson2001-11-152-6/+9
| | | | | | | 2001-11-15 Matt Wilson <msw@redhat.com> * gtk/pygtk.h (init_pygtk): cast void* to _PyGtk_FunctionStruct* when retrieving the API struct, #62872
* added PyGFatalExceptionFunc typedef, API wrapper forMatt Wilson2001-11-159-23/+321
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-11-15 Matt Wilson <msw@redhat.com> * pygobject.h: added PyGFatalExceptionFunc typedef, API wrapper for pyg_fatal_exceptions_{add,remove}. * gobjectmodule.c (pyg_boxed_new): return NULL on assertion failures, #62814 (pyg_closure_new): actually assign swap_data to the closure. (pyg_fatal_exceptions_notify, pyg_fatal_exceptions_notify_add, pyg_fatal_exceptions_remove): added mechanism for gobjectmodule using modules to get a function called when a fatal exception happens in closures, etc. (pyg_closure_marshal, pyg_signal_class_closure_marshal): return NULL if a gobjectmodule using module registered a fatal exception function. * gtk/pygtk-private.h: added declarations for pygtk_custom_destroy_notify, pygtk_tree_selection_marshal, pygtk_tree_foreach_marshal. Added typedef for PyGtkCustomNotify. #62814 * gtk/gtkmodule.c (init_gtk): register stock items, #62814. Set up fatal exception stuff if PYGTK_FATAL_EXCEPTIONS is set. This isn't 100% done yet, gtk mainloop specific functions still need work. * gtk/gtkobject-support.c (pygtk_tree_selection_marshal): added, #62814 (pygtk_tree_foreach_marshal): added, #62814 (pygtk_custom_destroy_notify): added, #62814 * gtk/gtk.override (_wrap_gtk_tree_selection_set_select_function): added, #62814 (_wrap_gtk_tree_selection_selected_foreach): added, #62814
* added, #62393 (_wrap_gtk_widget_class_path): added, #62393Matt Wilson2001-11-152-0/+42
| | | | | | | 2001-11-15 Matt Wilson <msw@redhat.com> * gtk/gtk.override (_wrap_gtk_widget_path): added, #62393 (_wrap_gtk_widget_class_path): added, #62393
* added, #62474 (GtkTreeSelection.get_mode): added, #62474Matt Wilson2001-11-152-0/+21
| | | | | | | 2001-11-15 Matt Wilson <msw@redhat.com> * gtk/gtk.defs (GtkWidget.set_size_request): added, #62474 (GtkTreeSelection.get_mode): added, #62474
* *** empty log message ***Johan Dahlin2001-11-141-0/+115
|
* removed GtkAccelGroup.accel_group_get_default,Matt Wilson2001-11-132-77/+13
| | | | | | | | | | | | | | 2001-11-13 Matt Wilson <msw@redhat.com> * gtk/gtk.defs: removed GtkAccelGroup.accel_group_get_default, GtkAccelLabel.get_accel_object, GtkAccelLabel.set_accel_object, item_factory_parse_rc, item_factory_parse_rc_string, GtkWidget.remove_accelerators, GtkWidget.accelerator_signal, GtkWidget.lock_accelerators, GtkWidget.unlock_accelerators, GtkWidget.accelerators_locked to reflect Tim's accelerator API revamp checkin. (GtkTreeDragDest.row_drop_possible): modified arguments to match new API.
* renamed GtkSelectionData.data_set_tree_row, #60218Matt Wilson2001-11-012-8/+27
| | | | | | | | | | | | 2001-11-01 Matt Wilson <msw@redhat.com> * gtk/gtk.defs (GtkSelectionData.tree_set_row_drag_data): renamed GtkSelectionData.data_set_tree_row, #60218 (GtkSelectionData.tree_get_row_drag_data): renamed GtkSelectionData.data_get_tree_row, #60218 (GtkFontSelection.get_preview_text): constify return arg (GtkFontSelectionDialog.get_preview_text): likewise. (GtkSelectionData.set_text): added len parameter
* reset release numberPYGTK_1_99_4Matt Wilson2001-10-291-1/+1
|
* remove gtk_cell_renderer_toggle_[gs]et_active.James Henstridge2001-10-292-16/+5
| | | | | | 2001-10-29 James Henstridge <james@daa.com.au> * gtk/gtk.defs: remove gtk_cell_renderer_toggle_[gs]et_active.
* -2001-10-26 Matt Wilson <msw@redhat.com>Matt Wilson2001-10-262-4/+11
| | | | | | | * configure.in (AC_INIT): increase version to 1.99.4 (AM_PATH_GLIB_2_0): change minver to 1.3.10 (PKG_CHECK_MODULES): change pango requirement to >= 0.21 (AM_PATH_GTK_2_0): change minver to 1.3.10
* include the module name in the typename. (PyGInterface_Type): same here.James Henstridge2001-10-254-28/+49
| | | | | | | | | | | | | | | | | 2001-10-25 James Henstridge <james@daa.com.au> * gobjectmodule.c (PyGObject_Type): include the module name in the typename. (PyGInterface_Type): same here. (PyGBoxed_Type): same here. (pygobject_register_class): when working out what name to put into the module dictionary, strip off everything before the last dot, so the type name can include the module. * configure.in (minver): require python 2.2b1 * gobjectmodule.c (initgobject): remove statements using tp_defined (they are no longer needed).
* add enumJames Henstridge2001-10-241-0/+10
|
* at the end of the getattr function, we must use Py_FindMethod. This fixesMatt Wilson2001-10-232-3/+15
| | | | | | | | | | | | | 2001-10-23 Matt Wilson <msw@redhat.com> * codegen/codegen.py (boxedgetattrtmpl, write_boxed_getattr): at the end of the getattr function, we must use Py_FindMethod. This fixes GtkSelectionData's methods, and DnD works again. * codegen/h2def.py (clean_func): deal with const return types when cleaning up function prototype (proto_pat): add '-' to the ret group so that const- will work in the return type
* make ChangeLog make more senseMatt Wilson2001-10-231-2/+2
|
* use new forward search API with flags enum in CVS.Matt Wilson2001-10-239-219/+178
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-23 Matt Wilson <msw@redhat.com> * gtk/gtk.override (_wrap_gtk_text_iter_forward_search): use new forward search API with flags enum in CVS. (_wrap_gtk_text_buffer_create_tag): likewise. (_wrap_gtk_selection_data_set): likewise. (_wrap_gtk_selection_add_targets): likewise. * gtk/pygtk-private.h (pygdk_atom_from_pyobject): added declaration. * gtk/gtk.defs (GtkTextIter.forward_search): use new flags enum (GtkTextIter.backward_search): likewise. * gtk/gdk.override (_wrap_gdk_gc_new_with_values): s/GPOINTER_TO_INT/GDK_POINTER_TO_ATOM/ (_wrap_gdk_property_get): use pygdk_atom_from_pyobject (_wrap_gdk_property_change): likewise. * codegen/argtypes.py (AtomArg.write_param): use pygdk_atom_from_pyobject when getting atom args * gtk/gtk-types.defs (TextSearchFlags): added new enum. * gtk/gtk-types.c (pygdk_atom_from_pyobject): implemented a function to get a GdkAtom from a Python object (PyGdkWindow_PropertyGet): use pygdk_atom_from_pyobject to get atoms from args, not this two-try ParseTuple. (PyGdkWindow_PropertyChange): likewise. (PyGdkWindow_PropertyDelete): likewise. * gtk/gdk-types.defs (Selection): removed, no longer an enum (Target): Likewise. (SelectionType): Likewise. 2001-10-22 Matt Wilson <msw@redhat.com> * gtk/gtk-types.c (pygdk_atom_number): remove numeric bits, GdkAtom is now opaque. * gtk/gtk.defs (GtkTreeModelSort.set_model): removed, is static now. (GtkTreeModelSort.convert_path): rename to GtkTreeMOdelSort.convert_path_to_child_path
* fill methodJames Henstridge2001-10-231-0/+8
|
* deal with const return types when cleaning up function prototypeMatt Wilson2001-10-211-4/+6
| | | | | | | | | 2001-10-21 Matt Wilson <msw@redhat.com> * codegen/h2def.py (clean_func): deal with const return types when cleaning up function prototype (proto_pat): add '-' to the ret group so that const- will work in the return type
* override GtkTreeModel.iter_children(parent) to return a new iter, likeMatt Wilson2001-10-192-0/+35
| | | | | | | | 2001-10-19 Matt Wilson <msw@redhat.com> * gtk/gtk.override (_wrap_gtk_tree_model_iter_children): override GtkTreeModel.iter_children(parent) to return a new iter, like GtkTreeModel.get_iter_root().
* rename from pixbuf_new_from_stream to match gdk-pixbuf changes in CVS.Matt Wilson2001-10-184-6/+20
| | | | | | | | | | | | 2001-10-18 Matt Wilson <msw@redhat.com> * gtk/gdk.defs (pixbuf_new_from_inline): rename from pixbuf_new_from_stream to match gdk-pixbuf changes in CVS. * pygtk.spec.in (%files devel): get header from new location * Makefile.am (pkgincludedir): put pygobject.h in $(includedir)/pygtk-2.0, not $(includedir)/pygtk-2.0/pygtk
* convert all argument type whitespace to '-'.Matt Wilson2001-10-162-2/+7
| | | | | | | 2001-10-16 Matt Wilson <msw@redhat.com> * codegen/h2def.py (define_func): convert all argument type whitespace to '-'.
* move headers to a version-specific directory so we can have oldMatt Wilson2001-10-155-4/+22
| | | | | | | | | | | | | | 2001-10-15 Matt Wilson <msw@redhat.com> * pygtk-2.0.pc.in (pygtkincludedir): move headers to a version-specific directory so we can have old pygtk-devel and pygtk2-devel installed at the same time. * Makefile.am (pkgincludedir): likewise * gtk/Makefile.am (pkgincludedir): likewise * pygtk.spec.in (%files devel): pick up the new header location
* more namespace tweaksMatt Wilson2001-10-151-4/+4
|
* spec tweaksMatt Wilson2001-10-111-4/+11
|
* fixed typo in devel filelist (header) added macro that tests to see if weMatt Wilson2001-10-112-5/+20
| | | | | | | | | 2001-10-11 Matt Wilson <msw@redhat.com> * pygtk.spec.in (%files devel): fixed typo in devel filelist (header) added macro that tests to see if we have libglade2 (%files libglade) make the filelist a condition of that (Name) changed name to 'pygtk2' to avoid name conflict with pygtk
* h2def.py couldn't handle functions parameters with a type but no name. Now ↵Murray Cumming2001-10-112-3/+12
| | | | it ignores that parameter.
* word wrapMatt Wilson2001-10-111-1/+2
|
* also go set up the reflist if we're doing refcount debugging.Matt Wilson2001-10-113-0/+17
| | | | | | | 2001-10-10 Matt Wilson <msw@redhat.com> * gobjectmodule.c (pygobject_dealloc): also go set up the reflist if we're doing refcount debugging.
* if we are saving a reference to the wrapper during dealloc (which isJames Henstridge2001-10-113-0/+19
| | | | | | | | | | 2001-10-11 James Henstridge <james@daa.com.au> * gobjectmodule.c (pygobject_dealloc): if we are saving a reference to the wrapper during dealloc (which is probably bad), check if it is a heap type, and if so, incref its type, so that subtype_dealloc() doesn't decref the type out from under us. This problem was tracked down by Matt Wilson
* fix up c-name.sigc1_1_before_patchJames Henstridge2001-10-094-3/+15
| | | | | | | | | | | 2001-10-09 James Henstridge <james@daa.com.au> * gtk/gtk-extrafuncs.defs (GenericTreeModel): fix up c-name. * examples/pygtk-demo/demos/treemodel.py (MyTreeModel): subclass from gtk.GenericTreeModel. * pygtk.spec.in (Requires): add new files to spec file.
* change pygtk.spec -> pygtk.spec.in, which is what msw probably forgot toPYGTK_1_99_3James Henstridge2001-10-093-3/+3
| | | | check in.
* move types.James Henstridge2001-10-0912-3254/+3300
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-09 James Henstridge <james@daa.com.au> * pango-types.defs: move types. * gtk/Makefile.am: modify rules to take into account splitting out the type definitions. --register arguments now only parse the type defs and not the function defs, which should speed up the build a bit. * gtk/gdk-types.defs: same here. * gtk/gtk.defs: and include gtk-types.defs here. * gtk/gtk-types.defs: move define-{object,interface,enum,flags,boxed} defs to this file. * gtk/gtk-extrafuncs.defs (get_selection): and add it back here. * gtk/gtk.defs: remove gtk_list_get_selection function from this file. * gtk/gtk-extrafuncs.defs (pygtk_generic_tree_model_new): similar changes here. * gtk/pygtktreemodel.c: same changes here. * gtk/pygtktreemodel.h (pygtk_generic_tree_model_get_type): rename to PyGtkGenericTreeModel, so that short name doesn't collide with GtkTreeModel.
* added specfile templateMatt Wilson2001-10-084-4/+24
| | | | | | | | | | | | | | | 2001-10-08 Matt Wilson <msw@redhat.com> * pygtk.spec.in: added specfile template * configure.in (AC_CONFIG_FILES): add pygtk.spec * Makefile.am (dist-hook): copy the spec file into the dist dest dir * gtk/gtk.defs (ColorSelectionDialog): added colorsel, ok_button, cancel_button, and help_button fields. (GtkList.get_selection): marked as a PyGTK extension.
* comment out, as it is only for use by engines.James Henstridge2001-10-088-141/+79
| | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-08 James Henstridge <james@daa.com.au> * pango.defs (pango_font_metrics_new): comment out, as it is only for use by engines. * gtk/libglade.override: same here. * gtk/gdk.override: same here. * gtk/gtk.override: use import section here. * pango.override: use the new import stuff to get the reference to the GObject type. * codegen/codegen.py (write_source): write out code based on the import statements in the overrides file. Most modules have some code like this, and this helps reduce the boilerplate code that needs to be entered in. * codegen/override.py (Overrides.get_imports): add handlers for "import" sections of the overrides file, which are used to get references to the types in other modules.
* remove unused variable (the line number on the gcc warning matchedJames Henstridge2001-10-064-9/+91
| | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-06 James Henstridge <james@daa.com.au> * gtk/gtk.override (_wrap_gtk_list__get_selection): remove unused variable (the line number on the gcc warning matched exactly!) * codegen/codegen.py (write_source): reset line numbering after writing headers and init overrides. (main): add --outfilename argument, for specifying the final name of the file -- output is not written to this file. If argument is not passed, derive from defs filename. * codegen/override.py (Overrides.__parse_override): add #line outputs for headers and init type overrides. * codegen/codegen.py (main): pass the filename to overrides. (FileOutput): wrapper class for file objects to keep track of line numbers, so that #line statements can be written. (write_class): write out #line statements for overriden constructor and methods. (write_getsets): write #line's for getsets. (write_interface): write #line's for methods. (write_boxed): write #line's for constructor and methods.
* pass the filename to overrides.James Henstridge2001-10-063-9/+50
| | | | | | | | | | | | | | | | | 2001-10-06 James Henstridge <james@daa.com.au> * codegen/codegen.py (main): pass the filename to overrides. * codegen/override.py (Overrides.__init__): rewrite the code that reads in the overrides file, so it only splits on lines with only '%%' in them. Also keep track of line numbers, so we know where each section starts. (Overrides.__parse_override): save the start line for 'override' sections and 'override-attr' sections. (Overrides.getstartline): new function to retrieve the start line for a .overrides section. (Overrides.__init__): take the filename rather than file handle as argument.
* implemented function to return the selection.Matt Wilson2001-10-053-1/+54
| | | | | | | | | | | | | 2001-10-05 Matt Wilson <msw@redhat.com> * gtk/gtk.override (_wrap_gtk_list__get_selection): implemented function to return the selection. (_wrap_gtk_list_get_selection): use above to implement a method for getting the selection, like old pygtk. * gtk/gtk.defs (GtkList.get_selection): added function to be compatible with previous versions. (GtkList): added "selection" field
* too many tuples.Matt Wilson2001-10-053-2/+6
| | | | | | 2001-10-05 Matt Wilson <msw@redhat.com> * gobjectmodule.c (pyg_closure_new): too many tuples.
* *** empty log message ***Johan Dahlin2001-10-052-2/+2
|