| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
| |
* tests/enum.py: add, forgot it in last commit
* gobject/: Move gobject source files in here.
|
|
|
|
|
|
|
| |
2004-06-09 Lorenzo Gil Sanchez <lgs@cvs.gnome.org>
* examples/gtk/widget.py (PyGtkWidget.do_size_request): change the
allocation parameter to requisition so we have a more clear example.
|
| |
|
|
|
|
| |
* gtk/gdk.override (_wrap_gdk_event_tp_setattr): Fix up *_CHECK calls
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* examples/gtk/widget.py: Add a new example of subclassing a GtkWidget.
* Makefile.am (EXTRA_DIST): Add widget.py
* pygobject.c (pygobject_new): guard object_ref call
|
|
|
|
| |
* examples/gtk/uimanager.py: Some more polishing, it'll never be finished!
|
| |
|
|
|
|
|
|
| |
2004-05-28 Johan Dahlin <johan@gnome.org>
* examples/gtk/uimanager.py: Add a toolbar and fix shortcuts.
|
|
|
|
| |
* examples/gtk/filechooser.py Fix bug #140946.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* examples/gtk/filechooser.py (response): Updated, call dialog.destroy()
* examples/gtk/uimanager.py: New example
* gtk/gtk.override (_wrap_gtk_ui_manager_add_ui_from_string):
Override, get rid of second argument.
|
|
|
|
|
|
|
|
|
| |
* gtk/gtk.override (_wrap_gtk_file_chooser_dialog_new): Impl,
based on gtk_dialog_new
* Makefile.am: Add example to EXTRA_DIST
* examples/gtk/filechooser.py (filter): New example
|
|
|
|
| |
* examples/glade/autoconnect.py: New small example
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
2003-09-15 James Henstridge <james@daa.com.au>
* gtk/gtkgl*: remove files.
* gtk/Makefile.am: remove gtkgl binding.
* configure.in (build_gtkgl): remove gtkgl bindings.
|
|
|
|
| |
rather than "python2.2".
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gtk/gtk.defs (gtk_label_new_with_mnemonic, gtk_label_new)
(render_icon): Allow some parameters to be NULL.
* gtk/gtk.override (_wrap_gtk_stock_lookup)
(_wrap_gtk_stock_list_ids)
(_wrap_gtk_tree_view_insert_column_with_data_func): Impl.
(ignore-glob): Remove gtk_accelerator_*
* examples/pygtk-demo/demos/stock_browser.py: Ported from C
|
|
|
|
|
|
| |
* examples/pygtk-demo/demos/editable_cells.py: New demo.
* examples/pygtk-demo/pygtk-demo.py: Rearrange code a bit.
* examples/pygtk-demo/demos/*.py: Clean up a bit.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2002-08-24 James Henstridge <james@daa.com.au>
mingw32 patches from Cedric Gustin <cgustin@ibelgique.com>:
* gtk/gtk.override: ignore more socket/plug functions on win32.
* gtk/gdk.override: gdk_pixmap_lookup is not implemented on win32.
* gtk/Makefile.am (common_ldflags): and here.
* pango.override (PyPangoAttribute_Type): initialise tp_alloc and
tp_new in the init() function, rather than in the structure
definition itself.
* Makefile.am (common_ldflags): pass -no-undefined if we are on
windows.
* configure.in: turn on win32 DLL support, and add OS_WIN32 and
PLATFORM_WIN32 conditionals for use in makefiles.
|
|
|
|
|
|
|
|
| |
2002-08-19 James Henstridge <james@daa.com.au>
* codegen/codegen.py
(GObjectWrapper.get_initial_constructor_substdict): fix small
typo.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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-06-24 James Henstridge <james@daa.com.au>
* gtk/gtk.defs (drag_source_set_icon_pixbuf): fix definition, as
reported by Thomas Leonard <tal00r@ecs.soton.ac.uk>
|
| |
|
|
|
|
|
|
|
| |
2002-06-23 James Henstridge <james@daa.com.au>
* examples/simple/scribble.py: update example to work with current
PyGTK.
|
|
|
|
|
|
|
|
|
|
|
|
| |
2002-06-03 Matt Wilson <msw@redhat.com>
* gtk/gtk.override
(_wrap_gtk_tree_view_insert_column_with_attributes): implement
(code mostly from jrb@redhat.com, minor fixups from me)
* gtk/gdk-types.defs (EventExpose): added to make the code
generator write GdkEventExpose * for
_wrap_gtk_container_propagate_expose (gets rid of a warning)
|
|
|
|
|
|
|
|
|
|
|
|
| |
2002-05-31 Matt Wilson <msw@redhat.com>
* examples/pygtk-demo/demos/list_store.py (fixed_toggled): the
path argument must be a tuple. Ints are not automatically
converted to tuples any more.
* pygtype.c (pyg_value_as_pyobject): change the behavior of
G_TYPE_UINT to match the code generator's output on 32 bit
systems.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2002-04-21 Hans Breuer <hans@breuer.org>
* codegen/codegen.py : added parameter --errorfilename
to allow redirection of stderr even with clumsy windoze
shell
* codegen/override.py : extended to allow 'sys.platform'
specific ignores
* examples/pygtk-demo/demos/colorsel.py : use
color = gtk.gdk.color_parse("blue")
to get the initial color
* examples/pygtk-demo/demos/draw.py : (new file)
demonstrating some simple drawing operations. It is
using the gtk.GC interface additions below.
* gtk/gdk.override : implement GdkGC.tp_getattr,
GdkGC.tp_setattr and gdk_gc_set_dashes (ported from #if 0'ed
code in gtk/gtk-types.c (should be removed there ?)
* gtk/gtk.override : ignore-win32 GTK_TYPE_PLUG
GTK_TYPE_SOCKET gtk_socket_new (the TYPE ignores do not work yet)
* config.h.win32 makefile.msc pygtk/makefile.msc :
new files to build pygtk on windoze using the established
glib/build/win32 infrastructure
* pygtk/gtk/gtk-fake-win32.c : (new file) implementing
gtk_plug_get_type() and gtk_socket_get_type(). It could
vanish if codegen/codegen.py has learned something like
'ignore-class-$(sys.platform) or my GtkPlug/GtkSocket
patch gets accepted with Gtk.
* gtk/gtkmodule.c : added a g_assert() to ensure importing
pygobject did work.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2002-04-12 Xavier Ordoquy <mcarkan@user.sourceforge.net>
* configure.in:
* gtk/Makefile.am:
Added the gtk.gl module.
* gtk/gtkgl.defs:
* gtk/gtkgl.override:
* gtk/gtkglmodule.c: (initgl):
Updated the gtkgl module and changed the name to gtk.gl
* examples/gl/dots.py:
Updated example but still needs some work.
* examples/gl/cone.py:
* examples/gl/gears.py:
Updated working examples.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2002-02-25 Johan Dahlin <jdahlin@telia.com>
* examples/pygtk-demo/demos/appwindow.py: clean up a bit and add
broken stock icon registration
* examples/pygtk-demo/pygtk-demo.py: Use set_size_request instead of
set_usize
* gtk/gtk.override (_wrap_gtk_widget_translate_coordinates): Impl
(_wrap_gtk_editable_get_selection_bounds): Impl
(_wrap_gtk_entry_get_layout_offsets): Impl
* gtk/gtk.defs: Add GtkTreeView.columns_autosize
* gtk/gtk-types.defs: Add a few fields
2002-02-21 Johan Dahlin <jdahlin@telia.com>
* gtk/gtk.defs: Removed
gtk_tree_view_column_cell_render,
gtk_tree_view_column_cell_focus,
gtk_tree_view_column_cell_draw_focus and
gtk_tree_view_column_cell_set_dirty since they're now private
in gtk.
|
|
|
|
|
|
|
|
| |
2002-02-05 Johan Dahlin <jdahlin@telia.com>
* examples/pygtk-demo/demos/list_store.py: add toggle for the
check box column.
VS: ----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
| |
2002-01-24 James Henstridge <james@daa.com.au>
* examples/pygtk-demo/demos/colorsel.py:
* examples/pygtk-demo/demos/dialogs.py:
* examples/pygtk-demo/demos/panes.py:
* examples/pygtk-demo/demos/sizegroup.py: add examples translated
by Michelle Campeotto.
|
|
|
|
|
|
|
| |
2002-01-24 James Henstridge <james@daa.com.au>
* gtk/gtk.override (_wrap_gtk_stock_add): add gtk.stock_add()
function from Skip (bug 68363).
|
|
|
|
|
|
|
|
| |
2002-01-24 James Henstridge <james@daa.com.au>
* examples/simple/simple.py: updated to use gobject.new().
* examples/simple/hello.py: updated version from Steve George.
|
|
|
|
|
|
|
|
|
| |
2002-01-24 James Henstridge <james@daa.com.au>
* pygtype.c (add_signal_docs): use g_string_append_printf().
(add_property_docs): same here.
* examples/simple/tooltip.py: updated version from Steve George.
|
|
|
|
|
|
|
|
| |
2002-01-11 Matt Wilson <msw@redhat.com>
* Makefile.am (EXTRA_DIST): added appwindow.py
* examples/pygtk-demo/demos/appwindow.py: added demo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2002-01-11 Matt Wilson <msw@redhat.com>
* codegen/argtypes.py (GtkTreePathArg.normal): added missing newline
* gtk/gtk.defs (item_factory_path_from_widget): the return here
should be gconst-gchar*. The header in gtk is wrong, filed
#68527 against gtk.
* gtk/gtk.override (pygtk_item_factory_cb): if the user passed
data to GtkItemFactory.create_items, call the callable with the
function data as the first parameter.
(_wrap_gtk_item_factory_create_items): take an optional
callback_data argument. Use PyGtkCustomNotify and
g_object_weak_ref to free up the reference to the callable and
data after the item factory is freed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
2002-01-03 Matt Wilson <msw@redhat.com>
* examples/pygtk-demo/demos/itemfactory.py: added demo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2002-01-03 Matt Wilson <msw@redhat.com>
* examples/pygtk-demo/demos/list_store.py (create_model): remove
-1 from store.set call.
* gtk/gtk.defs (GtkMenuBar.append, GtkMenuBar.prepend,
GtkMenuBar.insert): uncomment, just ignore these in gtk.override
* gtk/gtk.override (ignore): ignore gtk_menu_bar_append,
gtk_menu_bar_insert, and gtk_menu_bar_prepend.
* gtk/gtkmodule.c (init_gtk): remove unused v variable.
* gtk/gtk-types.defs (DialogFlags): s/define-enum/define-flags/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2001-12-18 James Henstridge <james@daa.com.au>
* Makefile.am (EXTRA_DIST): add new example to dist.
* examples/gobject/properties.py: test program that implements a
few properties.
* gobjectmodule.c (add_properties): new function for parsing the
__gproperties__ class attribute.
(create_property): helper routine for creating and installing the
new pspecs.
(pyg_type_register): add code to call add_properties if a
__gproperties__ attribute is found.
(pyg_object_class_init): set set_property/get_property methods in
vtable, and get rid of debug message.
(initgobject): add G_PARAM_* constants.
|
|
|
|
|
|
|
|
|
|
|
| |
2001-12-14 James Henstridge <james@daa.com.au>
* examples/gobject/signal.py: use __gsignals__ notation here.
* gobjectmodule.c (create_signal, add_signals): helper routines
for handling __gsignals__ attribute of classes.
(pyg_type_register): add support for creating signals as part of
type registration.
|
|
|
|
|
|
|
|
|
|
|
|
| |
2001-12-05 Matt Wilson <msw@redhat.com>
* examples/pygtk-demo/demos/list_store.py (create_model): use new
GtkListStore.set method.
2001-12-04 Matt Wilson <msw@redhat.com>
* gtk/gtk.override (_wrap_gtk_list_store_set,
_wrap_gtk_tree_store_set): added.
|
|
|
|
|
|
|
|
|
|
| |
2001-11-29 Matt Wilson <msw@redhat.com>
* gtk/libglade.defs (glade_xml_new): fname is actually required.
Added default to NULL for all arguments that are null-ok.
* gtk/libglademodule.c: added missing #include pygobject.h. Why
does pygtk.h define NO_IMPORT_PYGOBJECT?
|
| |
|