Make use of GObject introspection
Bug #609352 reported by
Mathias Brodala
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Exaile |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
Instead of relying on bindings, GObject introspection (http://
By then, dependency on python-* should be changed to (unversioned?) dependencies on gir* and probably versioned dependencies on GLib/GObject/Gtk which is overdue anyways.
Simple example for migration:
import gio
import gtk
import pango
Becomes:
from gi.repository import (
Gio as gio,
Gtk as gtk,
Pango as pango
)
description: | updated |
To post a comment you must log in.
Small test case showcasing Gobject introspection usage and some of the later features introduced in GTK (action widgets in GtkNotebook, GtkSpinner).
Some notable issues required to be resolved in Gobject introspection itself before we can consider using it:
* No default values in e.g. GtkBox.pack_start()
* Loss of convenience wrappers like GtkTreeRow[0][0] for simple value access, __gproperties__, __gsignals__, …