| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
svn path=/trunk/; revision=900
|
|
|
|
| |
svn path=/trunk/; revision=899
|
|
|
|
|
|
|
|
|
|
|
| |
2008-07-29 Johan Dahlin <johan@gnome.org>
* examples/gio/downloader.py:
* gio/giomodule.c (init_gio):
Add gio.FILE_ATTRIBUTE_* constants and update the examples to use them.
svn path=/trunk/; revision=897
|
|
|
|
| |
svn path=/trunk/; revision=896
|
|
|
|
| |
svn path=/trunk/; revision=895
|
|
|
|
|
|
| |
reuse it in a real application
svn path=/trunk/; revision=894
|
|
|
|
| |
svn path=/trunk/; revision=893
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-07-29 Johan Dahlin <johan@gnome.org>
* examples/gio/downloader.py:
Add a new example
* gio/ginputstream.override:
Use a string internally instead of a PyStringObject when
in read_async. Create a new python string in finish and
honor the number of bytes read.
svn path=/trunk/; revision=892
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-07-26 Johan Dahlin <johan@gnome.org>
* examples/gio/directory-async.py:
* gio/Makefile.am:
* gio/giomodule.c (init_gio):
* glib/pyglib.c (pyglib_error_check),
(pyglib_register_exception_for_domain):
* glib/pyglib.h:
* tests/test_gio.py:
Add a new API for registering exceptions for a GError domain.
Register a new exception for G_IO_ERROR, update tests
and examples to use the new exception.
svn path=/trunk/; revision=863
|
|
|
|
| |
svn path=/trunk/; revision=834
|
|
|
|
| |
svn path=/trunk/; revision=833
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-07-19 Johan Dahlin <johan@gnome.org>
* examples/gio/directory-async.py:
* gio/gfileenumerator.override:
* gio/gio.defs:
* tests/test_gio.py:
Wrap gio.FileEnumerator.next_files_async/next_files_done.
Update the example to use them instead of the synchronous versions,
add documentation and tests.
svn path=/trunk/; revision=832
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-07-19 Johan Dahlin <johan@gnome.org>
* examples/gio/directory-async.py:
Only fetch name, saves a couple of syscalls.
* gio/gio.override:
Set name to gio._gio so pychecker/pydoc works.
svn path=/trunk/; revision=831
|
|
|
|
| |
svn path=/trunk/; revision=829
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* examples/gio/directory-async.py:
* gio/gfile.override:
* gio/gfileenumerator.override:
* gio/gio.defs:
* tests/test_gio.py:
Wrap gio.File.enumerate_children_async, add tests, docstring
and an example.
Also document gio.File.enumerate while we're at it.
svn path=/trunk/; revision=828
|
|
|
|
| |
svn path=/trunk/; revision=716
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* examples/properties.py:
* gobject/Makefile.am:
* gobject/__init__.py:
* gobject/constants.py.in:
* gobject/generate-constants.c: (main):
* gobject/propertyhelper.py:
* tests/Makefile.am:
* tests/test_enum.py:
* tests/test_interface.py:
* tests/test_properties.py:
Add a property helper, fixes #338098
svn path=/trunk/; revision=662
|
|
|
|
| |
svn path=/trunk/; revision=636
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-04-29 Johannes Hölzl <johannes.hoelzl@gmx.de>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* examples/Makefile.am:
* examples/option.py:
* gobject/Makefile.am:
* gobject/gobjectmodule.c: (init_gobject):
* gobject/option.py:
* gobject/pygobject-private.h:
* gobject/pygoptioncontext.c: (pyg_option_context_init),
(pyg_option_context_dealloc), (pyg_option_context_parse),
(pyg_option_context_set_help_enabled),
(pyg_option_context_get_help_enabled),
(pyg_option_context_set_ignore_unknown_options),
(pyg_option_context_get_ignore_unknown_options),
(pyg_option_context_set_main_group),
(pyg_option_context_get_main_group),
(pyg_option_context_add_group), (pyg_option_context_compare),
(pyg_option_context_new):
* gobject/pygoptiongroup.c: (check_if_owned), (destroy_g_group),
(pyg_option_group_init), (pyg_option_group_dealloc), (arg_func),
(pyg_option_group_add_entries),
(pyg_option_group_set_translation_domain),
(pyg_option_group_compare), (pyg_option_group_transfer_group),
(pyg_option_group_new):
* tests/test_option.py:
Add support for GOption, fixes #163645
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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-05-07 James Henstridge <james@daa.com.au>
* examples/gobject/signal.py:
2001-05-06 James Henstridge <james@daa.com.au>
* gobjectmodule.c (pygobject__init__): make the __init__ function
choose what GType to pass to g_object_new based on the __gtype__
attribute.
(pygobject_methods): make __gobject_init__ an alias for
GObject.__init__.
(pyg_type_register): new function for registering new GTypes.
(pyg_type_register): register the type as "module+class" rather
than "module.class", as the second form is considered bad (would
like to use the second form though.
* configure.in: require 1.3.5 versions of glib and gtk+.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2001-03-30 James Henstridge <james@daa.com.au>
* examples/pygtk-demo: moved rewritten testgtk demo here
* gobjectmodule.c (pygobject_set_property): initialise the GValue
to { 0, }, so set_property actually works.
(pygobject_get_property): same here.
* gtk/gtk.defs: updated enum/flag defs.
* gtk/gdk.defs: updated enum/flag defs.
* examples/gobject/signal.py (D.do_my_signal): add small example
of overriding class closure for a signal introduced from python
code.
* codegen/h2def.py: add --onlyenums flag to only output enum defs.
|
|
2001-03-27 James Henstridge <james@daa.com.au>
* examples/gobject/signal.py: simple example program that adds a
signal to a class, connects a handler to an instance of that
class, and finally emits that signal. Messages are printed by
both the signal handler and class method closure.
* gobjectmodule.c (pyg_signal_class_closure_marshal): convert
dashes in signal name to underscores. Why does g_siganl_name use
dashes?
(pyg_signal_class_closure_marshal): fix off by one error when
setting up the python argument tuple. The first element was
getting left uninitialised. Signals introduced in python now
work.
* gtk/gtk.defs (GtkFileSelection.get_filename): return value is
const.
* gtk/gtk.override (_wrap_gtk_list_store_set_value): change name.
(_wrap_gtk_tree_store_insert): change name.
* gtk/gtk.defs (GtkListStore.set_value): change from set_cell to
set_value.
(GtkListStore.set_value): same here.
|