| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=605318
|
|
|
|
| |
Closes bug #421196.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-03-30 Tobias Mueller <tobiasmue@gnome.org>
Update the address of the FSF by replacing old bits with new ones.
Fixes bug 577154.
* pango.override:
* atkrectangle.override:
* ltihooks.py:
* gtk/libglade.override:
* gtk/gdkcolor.override:
* gtk/gdk.override:
* gtk/deprecation.py:
* gtk/__init__.py:
* gtk/_lazyutils.py:
* gtk/gdkdraw.override:
* gtk/gtk.override:
* gtk/gtkcontainer.override:
* gtk/gtkwidget.override:
* gtk/gtkobject-support.c:
* gtk/gtkiconview.override:
* gtk/gtk-types.c:
* gtk/gtkbuilder.override:
* gtk/gdkwindow.override:
* gtk/gtktreeview.override:
* gtk/pygtktreemodel.c:
* gtk/gtkunixprint.override:
* gtk/gtkstyle.override:
* gtk/gdkevent.override:
* gtk/pygtktreemodel.h:
* gtk/gtkctree.override:
* gtk/libglademodule.c:
* gtk/gtkwindow.override:
* gtk/keysyms.py:
* gtk/gdkgc.override:
* gtk/gtkunixprintmodule.c:
* gtk/gdkpixbuf.override:
* gtk/gdkcairo.override:
* gtk/gtkclist.override:
* gtk/gtktextview.override:
* gtk/pygtkcellrenderer.c:
* gtk/gdkrectangle.override:
* gtk/compat.py:
* gtk/pygtkcellrenderer.h:
* gtk/gtkmodule.c:
* pangomodule.c:
* atk.override:
* COPYING:
* pangocairomodule.c:
* atkmodule.c:
svn path=/trunk/; revision=3120
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-07-27 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* atkrectangle.override:
* gtk/gdk.override:
* gtk/gdkevent.override:
* gtk/gdkgc.override:
* gtk/gdkpixbuf.override:
* gtk/gtk-types.c:
* gtk/gtkcontainer.override:
* gtk/gtkmodule.c:
* gtk/gtktextview.override:
* gtk/libglade.override:
Do not exports internal symbols, fixes #347825
|
|
|
|
|
|
| |
* gtk/gtk-types.c (pygtk_tree_model_row_getitem)
(pygtk_tree_model_row_setitem): Remove negative index readjustment
code. #311852 (Baiju M)
|
| |
|
|
|
|
|
|
|
|
|
| |
* gtk/gtkmodule.c (init_gtk): GDK_PARENT_RELATIVE constant
* gtk/gtk-types.c (pygtk_style_helper_setitem): Add support for
GDK_PARENT_RELATIVE in style pixmaps.
Fixes #320248 (Nikos Kouremenos)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gobject/pygobject.c: (pygobject_new_full), (pygobject_dealloc),
(pygobject_clear):
* gtk/gdk.override:
* gtk/gtk-types.c: (_pygtk_style_helper_new),
(pygtk_style_helper_dealloc), (pygtk_style_helper_setitem),
(pygtk_tree_model_row_dealloc),
(pygtk_tree_model_row_iter_dealloc):
* gtk/gtk.override:
* gtk/gtkwidget.override:
We have atomic ref counting in glib now, remove block/unblocking
around reference counting.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gtk/pygtktreemodel.c: Clean up most functions here to have only
one return path.
* gobject/pygobject.c (pygobject_emit): Protect g_value_unset by
UNBLOCK/BLOCK_THREADS since it might call pygobject_free which
will result in a deadlock.
* gobject/gobjectmodule.c (pyg_thread_init): New function, move
thread initalization stuff in here.
* All over the place: Kill pyg_block/unblock_threads and use
PyGILState and Py_BEGIN/END_ALLOW_THREADS.
unblock [code] block calls are replaced by Py_BEGIN/END and
block [code] unblock calls are replaced by PyGILState.
|
|
|
|
|
|
|
|
| |
* gtk/gtk-types.c (pygdk_atom_compare) Remove.
(pygdk_atom_richcompare) Implement with comparison to strings.
(PyGdkAtom_Type) Set tp_compare to 0 and tp_richcompare to
pygdk_atom_richcompare.
Allow an Atom to be compared with a string. Fixes #148564.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gtk/gtkwidget.override (_wrap_gtk_widget__set_allocation): Impl.
(_wrap_gtk_widget__set_window): Impl.
* gtk/gtkclist.override (_wrap_gtk_clist_new_with_titles): put
all clist overrides here.
* gtk/gtk.override (_wrap_gtk_paint_polygon): Move gtk_widgets_*
ignore definitions to gtkwidget.override and clist_* to
gtkclist.override
(_wrap_gtk_action_group_add_actions): guard ref call
(_wrap_gtk_action_group_add_toggle_actions): ditto
(_wrap_gtk_action_group_add_radio_actions): ditto
* gtk/gtk-types.c (_pygtk_style_helper_new): guard ref call.
* gtk/gdk.override (_wrap_gdk_event_tp_setattr): Impl.
(I'll have nightmares about this code)
(_wrap_gdk_window_new): Clean up a little bit: Proper use of enums
and set a boolean to b instead of i. Block unref calls for thread
safety issues.
(_wrap_gdk_window_set_user_data): Impl. This is also a hairy
implementation: If it's a GtkWidget, get the GObject, otherwise
put the real pyobject in there. Maybe we should just always put
the widget in there.
(_wrap_gdk_window_add_filter): Thread safety.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gtk/gtk-types.c (_pygtk_tree_model_remove_row) Add function to
help in row removal from sort and filter models using del
(_pygtk_tree_model_set_row) Add support for TreeModelSort and
TreeModelFilter setting row values.
* gtk/pygtk-private.h (_pygtk_tree_model_remove_row) Add declaration.
* gtk/gtktreeview.override (_wrap_gtk_tree_model_tp_setitem) Use
_pygtk_tree_model_remove_row() helper function.
(_wrap_gtk_tree_model_filter_set_modify_func) Add.
Add support to TreeModelSort and TreeModelFilter for Python mapping,
number and iter protocols.
|
|
|
|
|
| |
* gtk/gtk-types.c (pygtk_tree_model_row_get_parent): Swap parent
and child argument. (#123605, patch by Steve Chaplin)
|
|
|
|
|
|
| |
2003-06-26 James Henstridge <james@daa.com.au>
* (lots of stuff): add copyright notices, and update to LGPL 2.1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2003-03-11 James Henstridge <james@daa.com.au>
* gtk/gtk.override (_wrap_gtk_tree_model_tp_setitem): add a
setitem routine for GtkTreeStore and GtkListStore.
(_wrap_gtk_list_store_insert): add second argument to allow
setting the values in the row when creating it.
(_wrap_gtk_list_store_insert_before): same here.
(_wrap_gtk_list_store_insert_after): and here.
(_wrap_gtk_list_store_prepend): and here.
(_wrap_gtk_list_store_append): and here.
(_wrap_gtk_tree_store_insert): and here.
(_wrap_gtk_tree_store_insert_before): and here.
(_wrap_gtk_tree_store_insert_after): and here.
(_wrap_gtk_tree_store_prepend): and here.
(_wrap_gtk_tree_store_append): and here.
* gtk/pygtk-private.h (_pygtk_tree_model_set_row): add prototype.
* gtk/gtk-types.c (pygtk_tree_path_from_pyobject): support
converting a path string to a GtkTreePath.
(_pygtk_tree_model_set_row): new helper function to set a row from
a sequence.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2003-01-17 Jon Trowbridge <trow@ximian.com>
* pygobject.c (pygobject_dealloc): In my fix for bug #102756 on
2003-01-08, I should have used calls to pyg_unblock_threads()/
pyg_block_threads() instead of directly calling the
Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS macros. The macros
don't update our local thread lock counts, causing problems in
cases where the finalization of one object triggers the
finalization of another. (When I say "problems", I of course mean
"horrible crashes and mysterious race conditions".)
* gtk/gtk-types.c (pygtk_style_helper_dealloc,
pygtk_style_helper_setitem, pygtk_tree_model_row_dealloc,
pygtk_tree_model_row_iter_dealloc): See above.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2003-01-08 Jon Trowbridge <trow@ximian.com>
* pygobject.c (pygobject_dealloc): Wrap
Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS around the call to
g_object_unref. We need to do this because the object finalizers
might trigger other code that has to acquire the interpreter lock,
causing a deadlock. Fixes #102756.
* gtk/gtk-types.c (pygtk_style_helper_dealloc): Wrap the call to
g_object_unref in Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS.
This should let us avoid other instances of bug #102756.
(pygtk_style_helper_setitem): Ditto.
(pygtk_tree_model_row_dealloc): Ditto.
(pygtk_tree_model_row_iter_dealloc): Ditto.
* gtk/gdk.override (pygdk_unblock_threads, pygdk_unblock_threads):
Restored David I Lehn's patch (#98380). His patch was fine ---
it just caused bug #102756 to emerge.
|
|
|
|
|
|
|
|
|
|
| |
2002-11-24 James Henstridge <james@daa.com.au>
* gtk/gtk.override (_wrap_gtk_tree_model_tp_getitem): allow you to
get a row object from a TreeIter as model[iter].
* gtk/gtk-types.c (pygtk_tree_model_row_get_iter): allow getting
an iter from a treemodel row object.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2002-07-15 James Henstridge <james@daa.com.au>
* gtk/gtk-types.c (pygtk_tree_model_row_getsets): add next,
parent, model and path attributes to row objects.
(pygtk_tree_model_row_methods): add an iterchildren() method to
row objects.
* gtk/gtk.override (pygtk_register_classes): rather than #defines,
set the tp_as_mapping and tp_iter members of GtkListStore, etc in
the init func.
|
|
|
|
|
|
|
|
|
|
|
| |
2002-07-15 James Henstridge <james@daa.com.au>
* gtk/gtk.override (_wrap_gtk_list_store_tp_iter): iter(liststore)
returns a gtk.TreeModelRowIter object.
* gtk/gtk-types.c (PyGtkTreeModelRowIter_Type): new iterator type
that returns a sequence of gtk.TreeModelRow objects for nodes
under a particular parent node.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2002-07-13 James Henstridge <james@daa.com.au>
* gtk/gtk.override (GtkListStore.tp_as_mapping): explicitly define
this, as PyType_Ready doesn't seem to inherit special methods from
secondary bases correctly.
(GtkTreeStore.tp_as_mapping): same here.
* gtk/gtk-types.c (PyGdkRectangle_to_value): fix up argument
ordering bug.
* gtk/gtk.override (_wrap_gtk_tree_model_tp_as_mapping): move
these mapping behaviours to the GtkTreeModel wrapper.
* gtk/gtk-types.c (PyGtkTreeModelRow_Type): rename from
GtkListStoreRow, and extend so that it can handle setting cells
for tree stores.
|
|
|
|
|
|
|
|
|
|
|
| |
2002-07-13 James Henstridge <james@daa.com.au>
* gtk/gtk.override (_wrap_gtk_list_store_tp_getitem): allow
subscripting of a GtkListStore to get row wrappers.
* gtk/gtk-types.c: add PyGtkListStoreRow type, that represents a
row in a list store.
(_pygtk_register_boxed_types): set the ob_type member.
|
|
|
|
|
|
|
|
|
|
| |
2002-07-08 James Henstridge <james@daa.com.au>
* pygobject.c (pygobject_connect): apply another memory leak fix
from Arjan (from bug #87413).
(pygobject_connect_after): equivalent fix here.
(pygobject_connect_object): and here.
(pygobject_connect_object_after): and here.
|
|
|
|
|
|
|
|
| |
2002-07-08 James Henstridge <james@daa.com.au>
* gtk/gtk-types.c (PyGdkRectangle_to_value): add custom boxed
handlers for GDK_TYPE_RECTANGLE, so that 4-sequences can
automatically be marshaled to GdkRectangle values.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2002-07-07 James Henstridge <james@daa.com.au>
* codegen/argtypes.py (GtkTreePathArg.write_return): update to use
this function.
(ArgMatcher.register_boxed): short circuit if there is already a
handler for the boxed type (helps with setting custom handlers for
boxed types).
* gtk/gtk-types.c (pygdk_rectangle_from_pyobject): new function to
parse a GdkRectangle from a PyObject.
* gtk/pygtktreemodel.c (pygtk_generic_tree_model_get_path): print
a warning if the return value could not be converted to a
GtkTreePath.
* gtk/gtk.override (_wrap_gtk_tree_model_get_value): don't assume
tree paths are tuples.
* codegen/argtypes.py (GtkTreePathArg.write_param): fix up code
generator to get rid of assumption that tree paths are tuples, and
catch case where pygtk_tree_path_from_pyobject() returns NULL.
* gtk/gtk-types.c (pygtk_tree_path_from_pyobject): change so that
we treat an integer PyObject as a tree path with a single index.
* pygtype.c (pyg_closure_marshal): apply patch from Arjan Molenaar
<arjanmolenaar@hetnet.nl> that fixes a reference leak for the
argument tuple passed to the callback.
(pyg_signal_class_closure_marshal): apply similar fix here.
|
|
|
|
|
|
| |
2002-04-23 James Henstridge <james@daa.com.au>
* gtk/gtk-types.c: remove old commented out GdkGC implementation.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2002-03-16 James Henstridge <james@daa.com.au>
* gtk/gtk-types.c (PyGtkStyleHelper_Type): add module name to type
name, and remove the commented out obsolete GdkColormap
implementation.
* gtk/gtk.override (_wrap_gtk_widget_get_pointer): return a
GdkRectangle instance.
* gtk/gdk.override: implement setters for GdkRectangle attributes.
* codegen/codegen.py (write_getsets): allow people to override the
setter without having to override the getter too.
(write_boxed_getsets): same here.
* gtk/gdk.override: implement sequence behaviour for GdkRectangle
wrapper.
* gtk/gdk-types.defs (Rectangle): add a GdkRectangle boxed type
definition.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2002-03-10 James Henstridge <james@daa.com.au>
* gtk/gtk-types.c: remove commented out GtkStyle code, as the
GObject based code now provides all the missing features.
* gtk/gtk.override: implement getters (and some setters) for
GtkStyle properties.
* gtk/gtk-types.c (_pygtk_style_helper_new): upgrade the style
helper code to work with gtk 2.0.
* gtk/gtk-types.defs (Style): add public fields of the GtkStyle
object.
* codegen/codegen.py (write_getsets): allow adding setters for
overriden properties (just do a string search for the setter
function prototype).
(write_boxed_getsets): same here.
2002-02-19 James Henstridge <james@daa.com.au>
* gtk/gtk-types.defs (MessageDialog): add some fields for the
label and icon. These are marked private, but they are very
useful if you want to change the message in a dialog.
* ChangeLog: spell Michele's name correctly (sorry!).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2002-01-07 James Henstridge <james@daa.com.au>
* examples/pygtk-demo/demos/itemfactory.py (main): the F10 key is
used to start navigating the menu -- not alt.
* gtk/gtk-types.c (PyGtkStyleHelper_Dealloc): use PyObject_DEL.
(PyGtkStyle_Dealloc): same here.
(PyGdkWindow_Dealloc): same here.
(PyGdkGC_Dealloc): same here.
(PyGdkColormap_Dealloc): same here.
(pygdk_atom_dealloc): same here.
* gobjectmodule.c (pyg_type_wrapper_dealloc): use PyObject_DEL to
prevent segfaults with pymalloc.
(pyg_param_spec_dealloc): same here.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
2001-09-29 James Henstridge <james@daa.com.au>
* gtk/pygtktreemodel.c (pygtk_tree_model_get_column_type): use
pyg_type_from_object instead. Based on patch from Elliot.
* gtk/gtk.override (_wrap_gtk_selection_data__get_data): convert
getter to a function to match codegen changes.
* : merge in python22-branch (see changelog entries below).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2001-09-27 Matt Wilson <msw@redhat.com>
* gtk/gtk.defs (GtkTreeView.set_cursor): added new parameters.
* gtk/pygtk-private.h: removed old PyGtkCTreeNode code, move to
generic generated code.
* gtk/gtkmodule.c (_PyGtk_FunctionStruct): likewise
* gtk/pygtk.h: likewise.
* gtk/gtk-types.c: likewise.
* gtk/gtk.override (_wrap_gtk_tree_store_get_root_iter): moved to
gtk_tree_model_get_iter_root.
(_wrap_gtk_ctree_node_from_cobject): removed
(_wrap_gtk_ctree_node_getattr): moved gtk-types.c getattr code to
generic boxed interface and placed here.
(_wrap_gtk_ctree_*): migrated to generic PyGBoxed for GtkCTreeNodes
2001-09-26 Matt Wilson <msw@redhat.com>
* gtk/gtkmodule.c (_PyGtk_FunctionStruct): removed PyGtkCTreeNode
functions
* codegen/argtypes.py: remove GtkCTreeNode custom registration
* gtk/gtk.defs (GtkContainer.queue_resize): remove, use
gtk_widget_queue_resize instead of gtk_container_queue_resize
(GtkContainer.child_composite_name): remove, this is private
(GtkContainer.clear_resize_widgets): likewise
(GtkTreeViewColumn.set_cell_renderer): remove, use
GtkTreeViewColumn.pack_start instead
(CTreeNode): added CTreeNode boxed definition
* gtk/gtk.override (_wrap_gtk_tree_view_column_new): changed from
gtk_tree_view_column_set_renderer to gtk_tree_view_column_pack_start.
2001-09-25 Matt Wilson <msw@redhat.com>
* gtk/gtk.defs (get_has_resize_grip): bound
(set_has_resize_grip): bound
|
|
|
|
|
|
|
|
|
| |
2001-09-14 James Henstridge <james@daa.com.au>
* pygobject.h (pyg_register_boxed_custom): same change.
* gobjectmodule.c (pyg_register_boxed_custom): rename from
pyg_boxed_register to avoid confusion.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2001-09-06 James Henstridge <james@daa.com.au>
* gtk/gtk.defs: various updates to make it compile.
* gtk/gtk-types.c (pygdk_atom_str): fallback to returning the repr
of the atom if we can't resolve its name, rather than returning
NULL. Patch from Skip.
* gobjectmodule.c (pyg_value_from_pyobject): look at the
fundamental type in this function so we can use a switch statement
that catches the fundamental types easily, reducing the number of
type checks.
(pyg_value_as_pyobject): similar here. Also handle boolean types
using patch from Skip.
* gtk/GDK.py: add extra constants from Skip.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2001-06-30 James Henstridge <james@daa.com.au>
* gtk/gtk-types.c: remove GdkDevice stuff from this file.
* gtk/gtk.override: add attribute getters for some GdkDevice
attributes, and overrides for some GdkDevice methods.
(_wrap_gdk_event_getattr): change stuff for GdkDevices, as they
are now GObjects.
* gtk/gdk.defs (Device): add device boxed type here.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2001-06-30 James Henstridge <james@daa.com.au>
* gtk/gtk.override (_wrap_gtk_selection_add_targets): fix up to
use PyGBoxed version of GdkEvent.
* gtk/gtk-types.c: remove GdkEvent stuff from here. Also delete
the commented out GdkDragContext code, as the current GObject
implementation has the same features now.
* gtk/gtk.override (_wrap_gdk_event_getattr): implement the
getattr method for GdkEvents.
* gtk/gdk.defs (Event): add boxed type here.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2001-06-30 James Henstridge <james@daa.com.au>
* gtk/gtk-types.c: remove uses of GtkSelectionData.
* gtk/gtk.override (GtkSelectionData.data): override the data
attribute for GtkSelectionData types.
(_wrap_gtk_selection_data_set): override method.
* gtk/gtk.defs (SelectionData): add GtkSelectionData boxed type
here.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2001-06-29 James Henstridge <james@daa.com.au>
* gtk/gtk.override (_wrap_gdk_cursor_new): constructor for
GdkCursor that handles both the standard and pixmap cases for
cursors.
* gtk/gtk-types.c: remove GdkCursor related stuff from this file.
* gtk/gdk.defs (Cursor): add boxed type for cursor.
(cursor_new): mark as constructor.
(cursor_new_from_pixmap): mark this one as a constructor as well.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2001-06-27 James Henstridge <james@daa.com.au>
* codegen/argtypes.py (arg): don't register a boxed handler for
GtkTextIter here.
* gtk/gtk.override: add overrides for various GtkTextIter methods.
* codegen/argtypes.py (BoxedArg.write_param): fix up variable type.
* gtk/gtk.override (_wrap_gtk_text_iter_copy): implement text iter
copy function, and ignore the gtk_text_iter_free function (it
could cause troubles).
(*): replace function calls using the old GtkTextIter wrapper.
* gtk/gtk.defs: update defs for GtkTextIter.
(TextIter): add text iter boxed type here.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2001-06-27 James Henstridge <james@daa.com.au>
* codegen/argtypes.py (arg): remove registrations for `custom'
boxed types for objects converted to PyGBoxed.
* gtk/gtk.override: use PyGBoxed calls fro GtkTreeIters.
* gtk/gtk-types.c: remove GtkTreeIter stuff from here.
* gtk/gtk.defs (TreeIter): add boxed type here.
2001-06-26 James Henstridge <james@daa.com.au>
* gtk/gtk-types.c: remove traces of GdkColor from this file.
* gtk/gtk.override: convert occurences of PyGdkColor_* with
correct PyGBoxed calls.
* gtk/gdk.defs (Color): add GdkColor boxed type here.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2001-06-25 James Henstridge <james@daa.com.au>
* gtk/gtkobject-support.c: remove dead code for GtkArg handling,
etc. (also tidied up references to it in other files).
2001-06-24 James Henstridge <james@daa.com.au>
* gtk/gtk-types.c: removed all traces of GdkFont.
* gtk/gdk.defs (Font): add boxed type for font.
|
|
|
|
|
|
|
|
| |
2001-06-24 James Henstridge <james@daa.com.au>
* gtk/gtk-types.c: removed all traces of GdkVisual.
* gtk/gdk.defs (Visual): add boxed type for visual.
|
|
|
|
|
|
|
|
|
| |
2001-06-24 James Henstridge <james@daa.com.au>
* gtk/gtk-types.c: remove all traces of GtkAccelGroup from this
file -- GtkAccelGroup is now generated code.
* gtk/gtk.defs (AccelGroup): add boxed type here.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2001-06-22 James Henstridge <james@daa.com.au>
* codegen/argtypes.py (GTypeArg.write_param): new arg type for
GType and GtkType args that uses pyg_type_from_object.
* gobjectmodule.c (pyg_type_from_object): new function to get a
type code from various types of python objects (currently, integer
like objects, strings and other objects that have a __gtype__
attribute).
(pygobject__init__): use pyg_type_from_object to get the object
type.
(pyg_signal_new): same here.
2001-06-21 James Henstridge <james@daa.com.au>
* gobjectmodule.c (pyg_boxed_getattro): allow getattr to work on
PyGBoxed types (while not overloading tp_getattr). We fall back
to tp_getattr if provided by the boxed type.
(pyg_register_boxed): make sure tp_getattro is set correctly.
* gtk/gtk-types.c (_pygtk_register_boxed_types): convert
GtkAccelGroup to a PyGBoxed type.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2001-05-29 James Henstridge <james@daa.com.au>
* codegen/Makefile.am: install the code generator
* gtk/Makefile.am: install the pygtk.h header
* Makefile.am: install the pygobject.h header
* gtk/gdk.defs, gtk/gtk.defs, gtk/gtk-types.c: changes to make
things compile.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2001-04-08 James Henstridge <james@daa.com.au>
* gtk/gtk.override: same here.
* gtk/gtk-types.c (_pygtk_register_boxed_types): more fixups
* gtk/gtkobject-support.c: lots of similar fixups.
* codegen/argtypes.py (_enum_name): gdk type codes now seem to be
named GDK_TYPE_... and not GTK_TYPE_GDK_...
2001-04-07 James Henstridge <james@daa.com.au>
* gtk/gtk.defs: lots of defs file updates.
2001-04-06 James Henstridge <james@daa.com.au>
* codegen/h2def.py: add --onlyobjdefs flag to script.
|