summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [gi] wrap the keyword argument in a dict so we don't break Python 2.5John (J5) Palmieri2011-03-031-1/+1
| | | | | * python < 2.6 does not allow sending in keyword litterals after sending in *args. You can only send in **kwds.
* [gi-demos] add the combobox with string ids section to the demosJohn (J5) Palmieri2011-03-031-1/+48
|
* [gi-overrides] add an override for Gdk.RGBAJohn (J5) Palmieri2011-03-032-0/+28
|
* [gi-demos] fix up search-entry to reflect annotations fixed in Gtk+ masterJohn (J5) Palmieri2011-03-031-14/+9
|
* [gi-demos] add search entry demoJohn (J5) Palmieri2011-03-031-0/+257
|
* [gi] wrap map in a list for Python 3 compatJohn (J5) Palmieri2011-03-031-1/+1
|
* [gi-demos] fix up the validation comboboxJohn (J5) Palmieri2011-03-031-6/+15
|
* add overridesdir variable in the .pc file for 3rd party overridesJohn (J5) Palmieri2011-03-031-0/+1
|
* [gi] remove unref for closures since they are floating objects that get sunkJohn (J5) Palmieri2011-03-032-6/+8
| | | | | | | | | | * right now we trust that the containers we send the closures into will sink them * we should research this a bit more to see if there is a better way to handle floating closures once we are free to break static binding ABI * for now this is the least invasive of all the options * don't assert on transfer != GI_TRANSFER_NONE since the behavior for closures is always the same (and should actually be GI_TRANSFER_FULL)
* setup.py: Set bdist_wininst user-access-control propertyDieter Verfaillie2011-03-021-1/+2
|
* Fix uninitialized variable in gi.require_version()Martin Pitt2011-03-021-1/+2
|
* Run tests with LC_MESSAGES="C"Martin Pitt2011-03-011-0/+2
| | | | | Some tests, such as tests/test_gdbus.py check parts of error messages or other visible strings. Ensure that these do not get translated in the test suite.
* [gi-overrides] override Gtk.stock_lookup to not return successJohn (J5) Palmieri2011-02-282-1/+10
|
* post release bumpJohn (J5) Palmieri2011-02-281-1/+1
|
* prep for 2.27.91 releasePYGOBJECT_2_27_91John (J5) Palmieri2011-02-281-0/+50
|
* [gi-tests] use Gdk.test_simulate_button instead of emitting event ourselvesJohn (J5) Palmieri2011-02-281-4/+5
| | | | | * this function is available specifically so we can test events so use this instead of creating our own button press event
* [gi-tests] tests for EventButton override.Laszlo Pandy2011-02-281-0/+21
| | | | | | | * John (J5) Palmieri - fixed up original patch so that we actually emit the event instead of just creating a Gdk.ButtonEvent object https://bugzilla.gnome.org/show_bug.cgi?id=642554
* Skip interfaces when checking for conflicts in the MROTomeu Vizoso2011-02-283-2/+63
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=642437
* [gi-overrides] Add event methods to all event union membersJohn (J5) Palmieri2011-02-281-0/+70
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=642554
* [gi] check to see if object is a member of a union when validating paramatersJohn (J5) Palmieri2011-02-281-0/+38
| | | | | | | | | | | | | * union members are not subclasses of the union they belong to so if an inteface requires you pass a union but you pass one of its members there will be a type error * this patch checks to see if the type you are passing is a member of the union and passes the checks if it is * this works in python 3 but in python 2 methods do their own isinstance check on the instance parameter (e.g. self) so we need to figure out how to override that for union methods (e.g. Gdk.Event.get_state) https://bugzilla.gnome.org/show_bug.cgi?id=642554
* [gi] Remove DyanmicModule.load() to _load() to prevent overriding GI attrs.Laszlo Pandy2011-02-242-2/+2
|
* Test case with John's fix for crash with C arrays and a GError is set.Laszlo Pandy2011-02-242-4/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | I have added a test case, and made a few fixes to John's patch, but the solution is the same his. Workaround a bug when freeing C array types * This is a hack and there is really no way around it without ripping out the current array handling code which spans between pygi-invoke.c and pygi-argument.c and completely rewriting it. * The is no time before our stable release * This patch trades a segfault for a leak in the very unusual case where an error occures inside an interface that takes one or more C arrays. Since we wrap C arrays in GArrays internally but have to unwrap them to send them to the introspected C function, there is a period of time where an error can occure with the C array in an unknown state (some being true C arrays and others still wrapped in a GArray) * This patch adds a c_arrays_are_wrapped state to signal that it is safe to free them. However since c_arrays_are_wrapped can only track arrays as a group, not individually, if it is set to FALSE we can not assume that every array is a pure C array, so instead we will simply leak them to avoid incorrectly freeing one and causing a segfault. * This issue is fixed in the invoke rewrite branch as it treats C arrays and GArrays separately, however that branch is not yet ready to be merged and won't be until the next release. https://bugzilla.gnome.org/show_bug.cgi?id=642708
* [gi-overrides] fix setting rows in treeview to accept None as a valueJohn (J5) Palmieri2011-02-232-5/+16
| | | | * as done in PyGTK None indicates the column should not be set
* [gi] Add value_name for enum and flags from introspection "c:identifier" (if ↵Laszlo Pandy2011-02-232-4/+54
| | | | attr is available).
* Don't force loading of DynamicModule until set in sys.modulesLaszlo Pandy2011-02-231-1/+1
| | | | | | | | This fixes Tomeu's previous commit, which removed lazy loading. Forcing the loading of a module before it is installed in sys.modules prevents some overrides from being registered (namely Gtk.main_quit). https://bugzilla.gnome.org/show_bug.cgi?id=642305
* Fix flags with multiple names for the same value.Laszlo Pandy2011-02-231-1/+1
| | | | | | | | | | | Flags constructs a dict __flags_values__ and uses it to cache instances. However some flags in Glib such as G_IO_FLAG_MASK and G_IO_FLAG_GET_MASK are aliases for the same int value, and will override each other's place in the dictionary. The dict length check is not necessary. It only reduces the number of duplicate instances we keep, because if an instance is not found in the dict, a new one is created anyway.
* [gi-demos] add liststore demoJohn (J5) Palmieri2011-02-222-0/+205
|
* [gi-demos] run through the demos and remove the FIXMEs that have been fixedJohn (J5) Palmieri2011-02-228-39/+12
|
* Load typelibs at import time, add gi.require_version()Tomeu Vizoso2011-02-224-18/+56
| | | | | | also adds Repository.get_loaded_namespaces() https://bugzilla.gnome.org/show_bug.cgi?id=642305
* use GValue support to marshal GtkTreeModel values correctlyJohn (J5) Palmieri2011-02-222-17/+107
| | | | | | * needs patch from https://bugzilla.gnome.org/show_bug.cgi?id=642914 https://bugzilla.gnome.org/show_bug.cgi?id=642921
* [gi] pass raw GValues instead of trying to marshal themJohn (J5) Palmieri2011-02-222-7/+26
| | | | | | | | | | | | | | | | | | * Right now GValues are transparent to the user but this leave us no way to describe fundimental types other than those supported directly by python (e.g. int, str, etc) * If an interface is expecting a uint or other GValue type a user can now use the raw GValue interfaces and expect paramaters that take GValues to marshal them correctly e.g.: value = GObject.Value() value.int(GObject.TYPE_UINT) value.set_uint(1234) * The objective here is to not for users to use this API but for overrides to be able to utilize them. For instance in the TreeModel API we can get the expected type for a column and them create a GValue with the correct type so that he underlying python object is marshalled correctly. https://bugzilla.gnome.org/show_bug.cgi?id=642914
* [gi-demos] add icon view edit and drag-and-drop demoJohn (J5) Palmieri2011-02-222-0/+101
|
* [gi] Register GType for non-GType enums and flags at runtime.Laszlo Pandy2011-02-226-29/+191
| | | | | | | | | | | | | | | Note: rebuild of gobject-introspection is required for new tests. Previously non-GType enums used a separate type implemented in Python, and non-GType flags had no implementation at all. This removes the separate type for enums, and registers a new GType at runtime if there isn't one. This allows non-GType enums and flags to use the same Python type as GType enums and flags. This removes duplication of code, and make both kinds behave identically. https://bugzilla.gnome.org/show_bug.cgi?id=642607
* [gi-demos] add info bars demoJohn (J5) Palmieri2011-02-191-0/+99
|
* tests/runtests.py: Add missing "import sys"Martin Pitt2011-02-191-0/+1
| | | | master already has this.
* [gi] Add Pythonic gdbus method invocationMartin Pitt2011-02-192-2/+199
| | | | | | | | | | | | | Provide a wrapper for Gio.DBusProxy for calling D-Bus methods like on a normal Python object. This will handle the Python object <-> GVariant conversion, and optional keyword arguments for flags, timeout, and a result handler for asynchronous calls. Require specifying the input argument signature as the first argument of each method call. This ensures that the types of e. g. integers are always correct, and avoids having to do expensive D-Bus introspection for each call. https://bugzilla.gnome.org/show_bug.cgi?id=640181
* Skip GError out parameters in Python closure.Laszlo Pandy2011-02-191-0/+8
| | | | | | | | | Python code should have never have to explicitely return a GError. Once we are able to marshal exceptions the Python code should throw an exception instead. Until then, set GError to NULL, and don't complain if a Python function doesn't return an arg for it. https://bugzilla.gnome.org/show_bug.cgi?id=642715
* [gi-demos] added rotate text demoJohn (J5) Palmieri2011-02-171-0/+196
| | | | * needs some Pango Attr fixes to be 100% done, See FIXME
* [gi-demos] add images demoJohn (J5) Palmieri2011-02-171-0/+311
| | | | * needs annotation fix from GdkPixbuf for ImageLoader to work
* [gi-demos] add pixbuf demoJohn (J5) Palmieri2011-02-171-0/+183
|
* [gi-demos] remove fixmes from print demo, fixed in pangoJohn (J5) Palmieri2011-02-171-7/+3
|
* [gi-demos] add printing demoJohn (J5) Palmieri2011-02-161-0/+177
| | | | * needs some annotations for pango before it is 100% useful
* [gi-overrides] add cursor overridesJohn (J5) Palmieri2011-02-162-0/+64
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=635947
* [gi-demos] add the links demoJohn (J5) Palmieri2011-02-161-0/+74
|
* [gi-demos] add expander demoJohn (J5) Palmieri2011-02-161-0/+60
|
* [gi-overrides] use pop instead of del and add extra tests for Gtk.Table kwargsJohn (J5) Palmieri2011-02-162-4/+10
|
* [tests] Separate processes for GI and static binding tests.Laszlo Pandy2011-02-152-18/+15
| | | | | | | | | | | | | Importing and using both static gobject bindings and introspection GObject bindings in the same process can cause conflicts with types which otherwise wouldn't be there. This patch changes "make check" to call runtests.py twice -- once for each set of tests. In the case of a test failure, runtests.py now sets the exit code so that make does not continue. Otherwise you might miss the failures from the first batch of tests in the scrollback.
* [GI] Remove implicit loading of gi module preserve the code path for static ↵Laszlo Pandy2011-02-151-2/+8
| | | | | | | | | | | | | | | | | | | | | bindings. Previously type lookups (as well as property accesses and signal connects would trigger an import of the gi module). Now we make those paths fail, and fallback to the old static binding code paths *unless* the gi module is already in sys.modules. So if Python code calls: from gi.repository import Gtk or even just: import gi then everything will work just like it did without this patch. If gi is not explicitly imported, the code skips the introspection code and acts like the old static bindings did. https://bugzilla.gnome.org/show_bug.cgi?id=642387
* [gi-demos] add dialogs demoJohn (J5) Palmieri2011-02-151-0/+153
|
* [gi-overrides] fix typo in GtkTable constructorJohn (J5) Palmieri2011-02-151-4/+4
|