Re: [PATCH 00/17] Improved introspection support and added python demo
- From: Víctor M. Jáquez L. <vjaquez igalia com>
- To: grilo-list gnome org
- Subject: Re: [PATCH 00/17] Improved introspection support and added python demo
- Date: Tue, 17 Aug 2010 15:08:25 +0200
On Sat, Aug 14, 2010 at 10:07:31PM +0200, Simón Pena wrote:
> Hi,
>
> The following patches improve introspection support by completing
> the annotations for grl-plugin-registry, grl-media-source, grl-multiple
> and grl-data
>
> Besides, two functions have been added to grl-metadata-key exposing
> functionality previously accessible only via macros, to get keys' name
> and description.
>
> The rest of the patches provide a small Python test showcasing a media search
> and an almost-complete clone of the grilo-test-ui, written in Python and
> using introspection bindings for Grilo, Gtk and Gio.
It works! It works!
How to run it in a non-installed environment:
1. first of all get your new pygobject environment:
$ jhbuild build pygobject
2. Then build grilo from a clean repo
3. Run this command
GI_TYPELIB_PATH+=:/home/vjaquez/checkout/grilo/src/ \
LD_LIBRARY_PATH=/home/vjaquez/checkout/grilo/src/.libs/ \
python ./grilo-test-ui.py
Troubleshooting:
a) if you got this error
"gi.RepositoryError: Failed to load typelib file
'/opt/jhbuild/lib64/girepository-1.0/foo.typelib' for namespace 'foo: Typelib
version mismatch; expected 3, found 2"
just rebuild gobject-introspection:
jhbuild buildone -c gobject-introspection
vmjl
>
> These patches annotate 'GrlKeyID's as 'GObject.ParamSpecs*'. While they are
> fully supported in Python, they aren't yet in JavaScript (see bug #626047).
> Besides, callbacks' GErrors have been annotated as uints.
>
> Once this patches get accepted, I'll update Grilo's bug #616961, notifying of
> this progress, and submitting a workaround to access our metadata keys from
> JavaScript (by annotating the keys as uints), and the JavaScript test updated.
>
> Simón Pena (17):
> annotations: Annotated grl-plugin-registry
> annotations: Annotated grl-media-source
> core: Make grl-metadata-key more introspection friendly
> python: Cloned JavaScript test
> python: Started cloning grilo-test-ui
> grilo-test-ui.py: Query and search comboboxes
> grilo-test-ui.py: Work on callbacks and ListStores
> annotations: Annotated grl-multiple
> grilo-test-ui.py: Implemented search_cb
> grilo-test-ui.py: Implemented clear_panes
> grilo-test-ui.py: Implemented browse
> annotations: Annotated grl-data
> grilo-test-ui.py: Added metadata resolution support
> grilo-test-ui.py: Added playback support
> grilo-test-ui.py: Media can be stored
> grilo-test-ui.py: Media can be removed
> grilo-test-ui.py: Added query support
>
> src/data/grl-data.c | 28 +-
> src/grl-media-source.c | 46 ++--
> src/grl-media-source.h | 8 +-
> src/grl-metadata-key.c | 28 ++
> src/grl-metadata-key.h | 4 +
> src/grl-multiple.c | 12 +-
> src/grl-plugin-registry.c | 10 +-
> tools/python/grilo-test-ui.py | 783 +++++++++++++++++++++++++++++++++++++++++
> tools/python/testGrilo.py | 56 +++
> 9 files changed, 923 insertions(+), 52 deletions(-)
> create mode 100644 tools/python/grilo-test-ui.py
> create mode 100644 tools/python/testGrilo.py
>
> _______________________________________________
> grilo-list mailing list
> grilo-list gnome org
> http://mail.gnome.org/mailman/listinfo/grilo-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]