- Oct 13, 2017
-
-
Christoph Reiter authored
All the runtime related commits are included in Ubuntu for years. The remaining commits regarding introspection shouldn't change anything as every distro I've checked disables that anyway. https://bugzilla.gnome.org/show_bug.cgi?id=705662#c4
-
- Feb 19, 2013
-
-
Martin Pitt authored
We must not add class interfaces after g_type_class_ref() has been called the first time. Move signal and property creation from pyg_type_register() into pyg_object_class_init(), and drop the hack of registering interfaces twice. This is a backport of commit efcb0f9f for 2.28.x. This allows old pygtk applications to work with pygobject 2.28.x and glib 2.35.x. https://bugzilla.gnome.org/show_bug.cgi?id=694108
-
- Mar 12, 2012
-
-
Allison Karlitskaya authored
These flags types were originally incorrectly handled in glib as being enums. That bug was fixed, but they're still enums here, leading to warnings about the mismatch. Change them to flags. https://bugzilla.gnome.org/show_bug.cgi?id=668522
-
- Feb 21, 2012
- Sep 07, 2011
-
-
Dieter Verfaillie authored
This makes parallel isntallation with PyGObject 3.0 easier on distributors. https://bugzilla.gnome.org/show_bug.cgi?id=657054
-
- Aug 15, 2011
- Jul 14, 2011
-
-
Martin Pitt authored
-
- Jul 13, 2011
-
-
Martin Pitt authored
As we ripped out the static gio bindings a while ago, this test case was using the system installed gio bindings with Python 2, and now fails completely with Python 3. Rewrite it to use gi.repository.Gio.
-
-
Martin Pitt authored
Python3 moved the maketrans() function from the string module to a str method. This unbreaks gi/module.py for Python 3 again.
-
- Jul 08, 2011
-
-
John (J5) Palmieri authored
-
Martin Pitt authored
In the TestGDBusClient.test_native_calls_async() test case, the main loop was never quit when the call failed.
-
- Jul 07, 2011
-
-
Martin Pitt authored
With commit 17cd0fb3 Gtk.TextIter.{forward,backward}_search() returns undefined pointers when the search was unsuccessful. Actually check the "success" return value; if it is False return None, just like PyGTK used to. Thanks to Michael Vogt for discovering this and writing the test case! Test case: -------------- 8< ----------------- from gi.repository import Gtk win = Gtk.Window.new(Gtk.WindowType.TOPLEVEL) textview = Gtk.TextView() buffer = textview.get_buffer() buffer.set_text("hello world") win.add(textview) win.show_all() iter = buffer.get_start_iter() end = buffer.get_end_iter() ret = iter.forward_search("foo", Gtk.TextSearchFlags.VISIBLE_ONLY, end) print "this is my return value" print ret print "now I crash" print ret[0].get_offset() Gtk.main() -------------- 8< -----------------
-
- Jul 01, 2011
-
-
John (J5) Palmieri authored
-
- Jun 28, 2011
-
-
John (J5) Palmieri authored
* this is needed because people file bugs not realizing they are importing 2.0 which is not supported
-
- Jun 27, 2011
-
-
- Jun 13, 2011
-
-
Ignacio Casal Quinteiro authored
-
- Jun 11, 2011
-
-
Ignacio Casal Quinteiro authored
-
- Jun 10, 2011
-
-
John (J5) Palmieri authored
* backport the switch to using GIInterfaceInfo instead of GITypeInfo for foreign types to support this patch - 01596a
-
John (J5) Palmieri authored
-
- Jun 08, 2011
-
-
-
-
Jason Siefken authored
Call Gdk.Color.equal and Gdk.RGBA.equal when == equality testing is used.
-
Ignacio Casal Quinteiro authored
-
Ignacio Casal Quinteiro authored
This reverts commit dfe95b9e.
-
Ignacio Casal Quinteiro authored
-
- Jun 06, 2011
-
-
Daniel Drake authored
Python-2.7.1's GC source has the following comment: /* Python's cyclic gc should never see an incoming refcount * of 0: if something decref'ed to 0, it should have been * deallocated immediately at that time. * Possible cause (if the assert triggers): a tp_dealloc * routine left a gc-aware object tracked during its teardown * phase, and did something-- or allowed something to happen -- * that called back into Python. gc can trigger then, and may * see the still-tracked dying object. Before this assert * was added, such mistakes went on to allow gc to try to * delete the object again. In a debug build, that caused * a mysterious segfault, when _Py_ForgetReference tried * to remove the object from the doubly-linked list of all * objects a second time. In a release build, an actual * double deallocation occurred, which leads to corruption * of the allocator's internal bookkeeping pointers. That's * so serious that maybe this should be a release-build * check instead of an assert? */ As shown in a backtrace at https://bugzilla.redhat.com/show_bug.cgi?id=640972 , pygobject is making this exact mistake. Before untracking its object, pygobject_dealloc calls PyObject_ClearWeakRefs() which can call back into python, create new allocations, and trigger the GC. This is causing Sugar (based on pygobject2 + pygtk2 static bindings) to crash on a regular basis while interacting with widgets or launching applications. Fix this by untracking the object early. Also fix the same issue spotted in the GSource wrapper. Thanks to Bernie Innocenti for initial diagnosis.
-
- May 05, 2011
-
-
Martin Pitt authored
We currently use upper() to present enum values, which are usually defined in lower case in the typelib, in upper cases. However, upper() is locale dependent, so that e. g. in tr_TR.UTF-8, "invalid" becomes "iNVALiD" because Turkish has some extra variants of "i". Use a local ASCII-only translate() call instead to avoid this. Thanks to Nils Philippsen for the idea! This also adds a test locale "te_ST@nouppera" which defines toupper('a') == 'a'. Run the Enum tests under this locale to reproduce the bug and verify the fix. https://bugzilla.gnome.org/show_bug.cgi?id=649165
-
- Apr 18, 2011
-
-
Sebastian Pölsterl authored
-
Sebastian Pölsterl authored
-
Sebastian Pölsterl authored
-
- Apr 16, 2011
-
-
Sebastian Pölsterl authored
-
- Apr 15, 2011
-
-
-
Sebastian Pölsterl authored
The bug in the annotations of GLib is fixed now. https://bugzilla.gnome.org/show_bug.cgi?id=639952 https://bugzilla.gnome.org/show_bug.cgi?id=647796
-
Sebastian Pölsterl authored
-
- Apr 11, 2011
-
-
Sebastian Pölsterl authored
This is required in order for the "g-signal" signal of GDBusProxy to work properly and thus to properly receive DBus signals with any type of argument. https://bugzilla.gnome.org/show_bug.cgi?id=647477
-
- Apr 08, 2011
-
-
Steve Frécinaux authored
Commit 84d6142c (Always register a new GType when a GObject class is subclassed) breaks the more advanced usage of PyGObject with regards to "metaclass hackery" as used in for example the kiwi and sqlkit projects. But the users of the gi-based bindings now rely on the new behaviour. We fix this by restraining the systematical registering of new types to the new gi-based bindings, leaving the old pygtk ones untouched. https://bugzilla.gnome.org/show_bug.cgi?id=646437
-
- Apr 04, 2011
-
-
Mike Gorse authored
Do not assume that an enum is returned as a long; treat it as an int if the type indicates that its size is that of an int. http://bugzilla.gnome.org/show_bug.cgi?id=646581
-
- Mar 24, 2011
-
-
Dieter Verfaillie authored
dsextras.py: ensure eol characters are preserved when writing template files (so \n does not become \r\n)
-