commit 70aa792fd8cacb8fc47f2624860daaeedd6a38f1 Author: Steve Frécinaux Date: Tue Jan 25 19:49:01 2011 +0100 Add tests/libpeas/extension-{python,seed}.c in POTFILES.skip For some reason these files are understood by intltool as containing translatable strings, but they don't. po/POTFILES.skip | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit f896a1ec724339a762caab31f816d210976cce88 Author: Garrett Regier Date: Mon Jan 17 16:42:36 2011 -0800 Added Seed version of PeasExtension tests For now the calling with args and property tests are disabled. .gitignore | 1 + configure.ac | 1 + tests/libpeas/Makefile.am | 40 +++++++------ tests/libpeas/extension-seed.c | 63 ++++++++++++++++++++ tests/libpeas/plugins/Makefile.am | 4 + tests/libpeas/plugins/extension-seed/Makefile.am | 5 ++ .../plugins/extension-seed/extension-seed.js | 20 ++++++ .../plugins/extension-seed/extension-seed.plugin | 9 +++ 8 files changed, 124 insertions(+), 19 deletions(-) commit 9c666fcc0cc6dff42c72fb5fed587e9131226a38 Author: Steve Frécinaux Date: Tue Jan 18 17:47:40 2011 +0100 peas-demo: use peas_engine_get_default() peas-demo/peas-demo-window.c | 11 ++--------- 1 files changed, 2 insertions(+), 9 deletions(-) commit c895bc888e8cb1542ea102a9f96f19c584a79bc4 Author: Garrett Regier Date: Sun Jan 23 12:35:07 2011 -0800 Do not create the window twice in testing_show_widget() tests/libpeas-gtk/testing/testing.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit f584ebf63d2900552b28868d3bb19f6718045866 Author: Steve Frécinaux Date: Tue Jan 25 19:52:22 2011 +0100 Do not call peas_activatable_deactivate() twice in DemoWindow The "extension-removed" callback already takes care of doing that, so there is no point doing it once more. The "extension-removed" documentation was also updated to reflect this behaviour. libpeas/peas-extension-set.c | 3 ++- peas-demo/peas-demo-window.c | 12 ------------ 2 files changed, 2 insertions(+), 13 deletions(-) commit 240826e0f9bf1465721228c015f13d106ba8c8d4 Author: Garrett Regier Date: Tue Jan 25 09:17:25 2011 -0800 Revert "Free PeasEngine after all tests have run" This reverts commit b95e82e46c3b1f8445b95f87488fc3e1e6c64f77. The engine was freed before the tests which is pointless. Conflicts: tests/libpeas/extension.c tests/libpeas-gtk/plugin-manager-store.c | 2 -- tests/libpeas-gtk/plugin-manager-view.c | 2 -- tests/libpeas-gtk/plugin-manager.c | 2 -- tests/libpeas/engine.c | 2 -- tests/libpeas/extension-set.c | 2 -- tests/libpeas/plugin-info.c | 2 -- tests/libpeas/testing/testing-extension.h | 2 -- 7 files changed, 0 insertions(+), 14 deletions(-) commit 781ac2d092124eaeec92c540f00c4134e016a128 Author: Garrett Regier Date: Tue Jan 25 09:15:35 2011 -0800 Delete no longer used test file tests/libpeas/extension.c | 410 --------------------------------------------- 1 files changed, 0 insertions(+), 410 deletions(-) commit c579d8ce41b04df8f6c5e8f99362755bd89d926e Author: Garrett Regier Date: Sun Jan 23 12:39:07 2011 -0800 Fix emitting PeasEngine::unload-plugin when unloading plugins in dispose libpeas/peas-engine.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 9a923717ad1be4ae0f034b91c8aca9b4c4d0dee3 Author: Garrett Regier Date: Sun Jan 23 12:51:56 2011 -0800 Emit notify::show-builtin when show-builtin is set libpeas-gtk/peas-gtk-plugin-manager-view.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 76ea3e1a960b057f2ceb0efa40310423852dcc6d Author: Garrett Regier Date: Sun Jan 23 12:51:11 2011 -0800 Fixed and added file copyrights and #include libpeas/peas-activatable.c | 2 +- libpeas/peas-debug.c | 2 +- libpeas/peas-extension-base.c | 3 +- libpeas/peas-extension-base.h | 2 +- libpeas/peas-extension-subclasses.c | 2 +- libpeas/peas-extension.c | 2 +- libpeas/peas-helpers.c | 26 ++++++++++++++++++++ libpeas/peas-helpers.h | 21 ++++++++++++++++ peas-demo/peas-demo.c | 2 + .../helloworld/peasdemo-hello-world-configurable.c | 25 +++++++++++++++++++ .../helloworld/peasdemo-hello-world-configurable.h | 23 ++++++++++++++++- .../helloworld/peasdemo-hello-world-plugin.c | 25 +++++++++++++++++++ .../helloworld/peasdemo-hello-world-plugin.h | 23 ++++++++++++++++- peas-demo/plugins/pythonhello/pythonhello.py | 21 ++++++++++++++++ peas-demo/plugins/secondtime/second-time.c | 25 +++++++++++++++++++ peas-demo/plugins/secondtime/second-time.h | 22 ++++++++++++++++- peas-demo/plugins/seedhello/seedhello.js | 21 ++++++++++++++++ 17 files changed, 237 insertions(+), 10 deletions(-) commit bf38bb977d61c41cb90aeffff41bafb669f47510 Author: Garrett Regier Date: Tue Jan 25 02:58:02 2011 -0800 Fix implementing interface vfuncs on 64bit libpeas/peas-extension-subclasses.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit 343b8efc7566473c53a6311cc377821beabb4587 Author: Garrett Regier Date: Tue Jan 25 04:11:29 2011 -0800 Test peas_extension_call() before calling interface vfunc tests/libpeas/testing/testing-extension.c | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) commit ecbd29ae938b2e917fef8cc00c9c32711a47a1b5 Author: Garrett Regier Date: Tue Jan 18 01:53:11 2011 -0800 Added test for implementing interface with a vfunc that has no invoker .../libpeas/introspection/introspection-callable.h | 5 ++++- tests/libpeas/testing/testing-extension.c | 6 ------ 2 files changed, 4 insertions(+), 7 deletions(-) commit 2ea916d6931e7576aadab498af65fd9033771c6b Author: Garrett Regier Date: Sun Jan 16 18:31:39 2011 -0800 Add a demo rule to the toplevel Makefile.am Such a rule already existed in peas-demo/Makefile.am Makefile.am | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit 0a139d6a61c032b14bcea4ed3291f7595b4ce71b Author: Ignacio Casal Quinteiro Date: Tue Jan 25 00:06:46 2011 +0100 Revert "Added --pkg-export option for g-ir-scanner." This reverts commit 5ab88d6d57c6665a11879bfc12afb676bcc31cc9. The reason for this is that libpeas's typelib requires de .pc and if we don't have it installed before building the tests the building will fail. libpeas/Makefile.am | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 5ab88d6d57c6665a11879bfc12afb676bcc31cc9 Author: Michal Hruby Date: Sat Jan 22 14:42:59 2011 +0100 Added --pkg-export option for g-ir-scanner. libpeas/Makefile.am | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit f3f6b4e120de36e16f9729d12fee9e8567bdd2ae Author: Steve Frécinaux Date: Tue Jan 18 16:15:33 2011 +0100 Use dispose() instead of finalize() to unref extension instances. This fixes refcount issues with non-native extensions, which prevented objects which had extensions attached to ever get finalized. The window example in peas-demo was also amended to use dispose() instead of finalize() to do all the unrefs. https://bugzilla.gnome.org/show_bug.cgi?id=639597 loaders/c/peas-extension-c.c | 11 +++++++---- loaders/python/peas-extension-python.c | 7 ++++--- loaders/seed/peas-extension-seed.c | 14 ++++++++++---- peas-demo/peas-demo-window.c | 19 ++++++++++++++----- 4 files changed, 35 insertions(+), 16 deletions(-) commit b4973d84c8978c4c8933e09d0b3c91a84177e303 Author: Garrett Regier Date: Wed Jan 19 02:48:59 2011 -0800 Fix GI Annotations for va_rarg, va_list and alternative functions libpeas/peas-engine.c | 13 ++++++++----- libpeas/peas-extension-set.c | 14 +++++++++----- libpeas/peas-extension.c | 19 +++++++++++++++++-- 3 files changed, 34 insertions(+), 12 deletions(-) commit fa99fd61b071c3d735f3b669714d1a7b1061f73b Author: Garrett Regier Date: Wed Jan 19 02:50:51 2011 -0800 Annotation and documentation fixes libpeas-gtk/peas-gtk-configurable.c | 4 ++-- libpeas-gtk/peas-gtk-plugin-manager-store.c | 2 +- libpeas-gtk/peas-gtk-plugin-manager-view.c | 6 +++--- libpeas-gtk/peas-gtk-plugin-manager.c | 4 ++-- libpeas/peas-activatable.c | 6 +++--- libpeas/peas-engine.c | 6 +++--- libpeas/peas-extension-base.c | 5 +++-- libpeas/peas-extension.c | 9 +++++++-- libpeas/peas-plugin-info.c | 6 +++--- .../libpeas/introspection/introspection-callable.c | 2 +- 10 files changed, 28 insertions(+), 22 deletions(-) commit 1c61e400788327ee72f1eda40a7e191488c0e6b1 Author: Garrett Regier Date: Tue Jan 18 01:51:56 2011 -0800 Added test for OS dependant help tests/libpeas/plugin-info.c | 21 +++++++++++++++++++++ tests/libpeas/plugins/os-dependant-help.plugin | 12 ++++++++++++ 2 files changed, 33 insertions(+), 0 deletions(-) commit fcdb2cfc8b8b67cf6cfcc1f7b7514c7786880eb1 Author: Garrett Regier Date: Mon Jan 17 16:39:20 2011 -0800 Fix creating reports with failing tests tests/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 11bf0c69de2c1d816eb8999830adcef0d3311ae2 Author: Garrett Regier Date: Mon Jan 17 03:25:41 2011 -0800 Added Python version of PeasExtension tests For now the property tests are disabled because tests that should fail succeed. .gitignore | 1 + configure.ac | 1 + tests/libpeas/Makefile.am | 9 +++ tests/libpeas/extension-python.c | 61 ++++++++++++++++++++ tests/libpeas/plugins/Makefile.am | 4 + tests/libpeas/plugins/extension-python/Makefile.am | 5 ++ .../extension-python/extension-python.plugin | 9 +++ .../plugins/extension-python/extension-python.py | 38 ++++++++++++ tests/libpeas/testing/testing.c | 2 +- 9 files changed, 129 insertions(+), 1 deletions(-) commit 1f388f9c7dc18ce925b8a4fd8b1579cfb025ef5c Author: Garrett Regier Date: Mon Jan 17 03:06:34 2011 -0800 Moved PeasExtension test functions to libtesting This will allow us to easily run the same tests on other loaders. .gitignore | 2 +- configure.ac | 3 +- tests/libpeas/Makefile.am | 6 +- tests/libpeas/extension-c.c | 28 ++ tests/libpeas/plugins/Makefile.am | 2 +- tests/libpeas/plugins/callable/Makefile.am | 19 - tests/libpeas/plugins/callable/callable-plugin.c | 106 ------ tests/libpeas/plugins/callable/callable-plugin.h | 52 --- tests/libpeas/plugins/callable/callable.plugin | 8 - tests/libpeas/plugins/extension-c/Makefile.am | 23 ++ .../libpeas/plugins/extension-c/callable-plugin.c | 96 +++++ .../libpeas/plugins/extension-c/callable-plugin.h | 52 +++ .../plugins/extension-c/extension-c-plugin.c | 46 +++ .../plugins/extension-c/extension-c-plugin.h | 33 ++ .../libpeas/plugins/extension-c/extension-c.plugin | 8 + .../plugins/extension-c/properties-plugin.c | 180 +++++++++ .../plugins/extension-c/properties-plugin.h | 55 +++ tests/libpeas/plugins/properties/Makefile.am | 19 - .../libpeas/plugins/properties/properties-plugin.c | 184 ---------- .../libpeas/plugins/properties/properties-plugin.h | 55 --- tests/libpeas/plugins/properties/properties.plugin | 8 - tests/libpeas/testing/Makefile.am | 12 +- tests/libpeas/testing/testing-extension.c | 386 ++++++++++++++++++++ tests/libpeas/testing/testing-extension.h | 96 +++++ 24 files changed, 1018 insertions(+), 461 deletions(-) commit 2546a792f3fa17512a0bfd1a41b07d21ae36a174 Author: Steve Frécinaux Date: Mon Jan 17 14:42:31 2011 +0100 Automatically load the PeasGtk typelib when using PeasGtkPluginManager PeasGtkPluginManager requires the PeasGtk typelib to work (because it uses the PeasGtkConfigurable interface), so we make it so it will load it by itself. libpeas-gtk/peas-gtk-plugin-manager.c | 11 +++++++++++ peas-demo/peas-demo.c | 2 -- 2 files changed, 11 insertions(+), 2 deletions(-) commit c38f3dc653ca246ef4b2efbcf33ea9556ad48cbb Author: Garrett Regier Date: Mon Jan 17 02:39:31 2011 -0800 Delete the callable-python test plugin as it was accidentally committed tests/libpeas/plugins/callable-python/Makefile.am | 7 ------- .../callable-python/callable-python-plugin.py | 19 ------------------- .../plugins/callable-python/callable-python.plugin | 8 -------- 3 files changed, 0 insertions(+), 34 deletions(-) commit d5eb7809b6052130e95a97a18e4dfe28626a0e27 Author: Garrett Regier Date: Mon Jan 17 02:37:50 2011 -0800 Don't use PeasActivatable in PeasExtension test This will make it easier to test diffrent plugin loaders. tests/libpeas/extension.c | 39 +++++++------------- .../libpeas/introspection/introspection-callable.c | 12 ++++++ .../libpeas/introspection/introspection-callable.h | 2 + tests/libpeas/plugins/callable/callable-plugin.c | 6 +++ 4 files changed, 33 insertions(+), 26 deletions(-) commit 2dff9fbbf9f84470347fcf5691c354d30816d27b Author: Garrett Regier Date: Sun Jan 16 22:07:46 2011 -0800 Don't use peas_extension_call() in tests Instead call through the correct interface. This allows us to test that the PeasExtension properly implements the interface. tests/libpeas/extension.c | 21 ++++++++++++++++----- 1 files changed, 16 insertions(+), 5 deletions(-) commit 53efe62a6d30f90d995b547132e26538785ed625 Author: Garrett Regier Date: Sun Jan 16 21:54:40 2011 -0800 Fix implementing an interface without a VFunc invoker The vfunc_info was being incorrectly unreffed. libpeas/peas-extension-subclasses.c | 1 - tests/libpeas/extension.c | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletions(-) commit b773e962fa8d83d1cf07f5e40d461cffe7b94c97 Author: Garrett Regier Date: Sun Jan 16 18:36:14 2011 -0800 Rework the peas-demo UI by putting the manager in the main window peas-demo/peas-demo.c | 67 ++++++++++++------------------------------------ 1 files changed, 17 insertions(+), 50 deletions(-) commit 64e3e9bbfd5ff8380a993b28bfa69b042fc2a06f Author: Garrett Regier Date: Sun Jan 16 18:33:18 2011 -0800 Update DemoWindow to use peas_engine_get_default() peas-demo/peas-demo-window.c | 41 +++++++++++++++-------------------------- peas-demo/peas-demo-window.h | 2 +- peas-demo/peas-demo.c | 2 +- 3 files changed, 17 insertions(+), 28 deletions(-) commit 0f41ecee8bf05380874edaa76415a1428032cfab Author: Garrett Regier Date: Sun Jan 16 18:30:14 2011 -0800 Add tests for PeasGtkPluginManager's about and configure dialogs tests/libpeas-gtk/plugin-manager.c | 157 +++++++++++++++++++- .../plugins/configurable/configurable.plugin | 1 + tests/libpeas-gtk/testing/testing.c | 8 + 3 files changed, 165 insertions(+), 1 deletions(-) commit 7500f6f448148e088998a2f841fcfdeb5e60cb85 Author: Garrett Regier Date: Sun Jan 16 15:38:01 2011 -0800 Use gtk_widget_destroy instead of g_object_unref in libpeas-gtk tests tests/libpeas-gtk/plugin-manager-store.c | 6 +----- tests/libpeas-gtk/plugin-manager-view.c | 6 +----- tests/libpeas-gtk/plugin-manager.c | 6 +----- tests/libpeas-gtk/testing/testing.c | 5 ++++- 4 files changed, 7 insertions(+), 16 deletions(-) commit 8e8dc4dbac62959db3c75c882e0221854697fbfa Author: Garrett Regier Date: Sun Jan 16 15:36:32 2011 -0800 More PeasUI to PeasGtk fixes README | 2 +- docs/reference/Makefile.am | 4 ++-- docs/reference/libpeas-docs.sgml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) commit 5baaabf28790b45967e205b50b3c96ad1038da8f Author: Garrett Regier Date: Sun Jan 16 14:00:20 2011 -0800 PeasPluginManager and View cleanup and style fixes libpeas-gtk/peas-gtk-plugin-manager-view.c | 36 +++++++++++---------------- libpeas-gtk/peas-gtk-plugin-manager.c | 34 +++++++------------------ 2 files changed, 25 insertions(+), 45 deletions(-) commit e521d827abd277b3c14a6aad4b9bef88c2491d13 Author: Garrett Regier Date: Sun Jan 16 13:56:21 2011 -0800 Override class handlers instead of signals in PeasGtkPluginManagerView libpeas-gtk/peas-gtk-plugin-manager-view.c | 116 +++++++++++++--------------- 1 files changed, 53 insertions(+), 63 deletions(-) commit b2304ef9a624d42e6c2505e24671b80fe5d823d3 Author: Garrett Regier Date: Sun Jan 16 13:43:59 2011 -0800 Added tests for custom icons configure.ac | 1 + tests/libpeas-gtk/plugin-manager-store.c | 37 ++++++++++++++++--- tests/libpeas-gtk/plugins/Makefile.am | 7 ++-- .../libpeas-gtk/plugins/invalid-custom-icon.plugin | 8 ++++ tests/libpeas-gtk/plugins/invalid-icon.plugin | 8 ---- .../libpeas-gtk/plugins/invalid-stock-icon.plugin | 8 ++++ .../plugins/valid-custom-icon/Makefile.am | 3 ++ .../plugins/valid-custom-icon/exists.png | Bin 0 -> 2916 bytes .../valid-custom-icon/valid-custom-icon.plugin | 8 ++++ tests/libpeas-gtk/plugins/valid-icon.plugin | 8 ---- tests/libpeas-gtk/plugins/valid-stock-icon.plugin | 8 ++++ 11 files changed, 71 insertions(+), 25 deletions(-) commit e6dd4b3bc574e25268b2ad1922b295434591dde7 Author: Garrett Regier Date: Sun Jan 16 13:40:46 2011 -0800 Allow the Icon in *.plugin to be located in the data dir libpeas-gtk/peas-gtk-plugin-manager-store.c | 70 +++++++++++++++++++----- libpeas-gtk/peas-gtk-plugin-manager-store.h | 3 +- libpeas-gtk/peas-gtk-plugin-manager-view.c | 32 ++++++++++-- peas-demo/plugins/secondtime/gnome-foot.png | Bin 0 -> 2916 bytes peas-demo/plugins/secondtime/secondtime.plugin | 1 + tests/libpeas-gtk/plugin-manager-store.c | 18 +++--- tests/libpeas/plugin-info.c | 2 +- tests/plugins/full-info.plugin | 2 +- 8 files changed, 99 insertions(+), 29 deletions(-) commit 242890d1e2638aa8a5698e9e2540731afaecdbdf Author: Garrett Regier Date: Sun Jan 16 13:21:17 2011 -0800 Added tests for valid and invalid plugin icons tests/libpeas-gtk/plugin-manager-store.c | 37 +++++++++++++++++++++++++ tests/libpeas-gtk/plugins/Makefile.am | 6 ++++ tests/libpeas-gtk/plugins/invalid-icon.plugin | 8 +++++ tests/libpeas-gtk/plugins/valid-icon.plugin | 8 +++++ tests/libpeas-gtk/testing/testing.c | 1 + 5 files changed, 60 insertions(+), 0 deletions(-) commit 811c61631ec1baec17e0bf31e1a54f33afe1b67b Author: Garrett Regier Date: Sun Jan 16 12:53:51 2011 -0800 Override properties in PeasExtension subclasses Generated subclasses do not override properties and this causes new versions of GObject to emit a critical warning. This also allows plugins to expose properties for setting and getting. configure.ac | 1 + libpeas/Makefile.am | 1 + libpeas/peas-extension-priv.h | 36 ++++ libpeas/peas-extension-subclasses.c | 91 ++++++++++- libpeas/peas-extension.c | 19 ++- libpeas/peas-extension.h | 1 + loaders/c/peas-extension-c.c | 5 +- loaders/python/peas-extension-python.c | 6 +- loaders/seed/peas-extension-seed.c | 5 +- tests/libpeas/extension.c | 127 +++++++++++++- tests/libpeas/introspection/Makefile.am | 2 + .../introspection/introspection-properties.c | 53 ++++++ .../introspection/introspection-properties.h | 52 ++++++ tests/libpeas/plugins/Makefile.am | 2 +- tests/libpeas/plugins/properties/Makefile.am | 19 ++ .../libpeas/plugins/properties/properties-plugin.c | 184 ++++++++++++++++++++ .../libpeas/plugins/properties/properties-plugin.h | 55 ++++++ tests/libpeas/plugins/properties/properties.plugin | 8 + 18 files changed, 652 insertions(+), 15 deletions(-) commit 68af2550b2a8e8987110194c0723cf0c074c3ed7 Author: Garrett Regier Date: Sun Jan 16 12:49:53 2011 -0800 Add a make rule for running the tests under valgrind The rule runs all the tests under valgrind with the appropriate enviroment variables and options set and the log is saved to vgdump-$$test_prog. .gitignore | 1 + Makefile.am | 2 +- tests/Makefile.am | 4 ++-- tests/Makefile.tests | 14 ++++++++++++++ 4 files changed, 18 insertions(+), 3 deletions(-) commit e33b3ef43a454437ad5fd42e6eb2355637040620 Author: Garrett Regier Date: Sun Jan 16 12:45:31 2011 -0800 Split common Makefile.am code to Makefile.tests This also adds a hook so the libpeas-gtk tests are only run when $DISPLAY is set. tests/Makefile.am | 27 +++++++++++++++++++++------ tests/Makefile.tests | 20 ++++++++++++++++++++ tests/libpeas-gtk/Makefile.am | 25 +++---------------------- tests/libpeas/Makefile.am | 22 +--------------------- 4 files changed, 45 insertions(+), 49 deletions(-) commit 62aeb94b380f9bf4aad579026a213e7f9b0c06e7 Author: Garrett Regier Date: Sun Jan 16 12:41:10 2011 -0800 Use libtool --mode=execute instead of .libs/lt-$$test_prog tests/libpeas-gtk/Makefile.am | 2 +- tests/libpeas/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit b95e82e46c3b1f8445b95f87488fc3e1e6c64f77 Author: Garrett Regier Date: Sun Jan 16 12:40:07 2011 -0800 Free PeasEngine after all tests have run testing_engine_free() only fakes freeing it for now due to errors caused by resident modules. tests/libpeas-gtk/plugin-manager-store.c | 2 ++ tests/libpeas-gtk/plugin-manager-view.c | 2 ++ tests/libpeas-gtk/plugin-manager.c | 2 ++ tests/libpeas/engine.c | 2 ++ tests/libpeas/extension-set.c | 2 ++ tests/libpeas/extension.c | 2 ++ tests/libpeas/plugin-info.c | 2 ++ 7 files changed, 14 insertions(+), 0 deletions(-) commit ff0cd0fe0e61f0c036ad368a74cd6aff8d255356 Author: Garrett Regier Date: Sun Jan 16 12:39:02 2011 -0800 Fix memory leak in libpeas-gtk tests by freeing tree paths tests/libpeas-gtk/plugin-manager-view.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 101afa0e6ba7ef949f62866b239615e67f4722c7 Author: Garrett Regier Date: Sun Jan 16 12:38:19 2011 -0800 Fix a memory leak in the tests caused by resident modules tests/libpeas/extension.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit b5c07d76d7eb2616e508561ae4a5780ba728c386 Author: Garrett Regier Date: Sun Jan 16 12:37:53 2011 -0800 Fix memory leak in PeasPluginInfo libpeas/peas-plugin-info.c | 23 +++++++++++------------ 1 files changed, 11 insertions(+), 12 deletions(-) commit 67d96a4b7059d43db1e47b9fcc878a7ef4cfdfbc Author: Khaled Hosny Date: Sat Jan 8 08:26:05 2011 +0200 Add Arabic to LINGUAS file po/LINGUAS | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 0b3cfbcebcedae5a2c8b2037981c4fcee289ccd7 Author: Khaled Hosny Date: Sat Jan 8 08:20:07 2011 +0200 Add Arabic translation po/ar.po | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 63 insertions(+), 0 deletions(-) commit ba92170be7bbcc8c2e709806d3c2d4be4989874f Author: Garrett Regier Date: Sat Jan 1 12:58:02 2011 -0800 Fix seed extensions loaders/seed/peas-extension-seed.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit 10f86cd679e3b968812412b23c4fcf42ff1666a3 Author: Garrett Regier Date: Sat Jan 1 12:43:00 2011 -0800 Remove unused variable peas-demo/plugins/secondtime/second-time.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit e4d9a2a39caecfc1dbe0dcf318f3de742f2c7866 Author: Garrett Regier Date: Sat Jan 1 12:42:50 2011 -0800 Correctly set the libdir under win32 libpeas/peas-dirs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit dc51fffb98e716904684902d6e7325e3975f32f4 Author: Garrett Regier Date: Sun Dec 19 15:52:28 2010 -0800 Reduce the number of allocations in calling methods via GI libpeas/peas-extension-subclasses.c | 34 +++++++++++++--------------------- libpeas/peas-extension.c | 7 +++---- libpeas/peas-introspection.c | 31 ++++++++++++------------------- loaders/seed/peas-extension-seed.c | 8 ++++---- 4 files changed, 32 insertions(+), 48 deletions(-) commit 9e02ddbe844a0450a6faeb833709bc747075c79d Author: Garrett Regier Date: Wed Dec 15 08:24:32 2010 -0800 Add a note in the plugin manager store about the plugin info and unreffing libpeas-gtk/peas-gtk-plugin-manager-store.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 4dcaccf5d70cf2ef1fbee2aa9645a47fd0247af8 Author: Garrett Regier Date: Wed Dec 15 00:23:46 2010 -0800 Do not scan for plugins when constructed as there are no search paths libpeas/peas-engine.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) commit 87015902e60059906e3362e95c9919f0cc27dac1 Author: Steve Frécinaux Date: Sun Dec 19 12:32:52 2010 +0100 Update gobject-introspection requirement to match actual requirements configure.ac | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 3078aaea1671e35a59cc4c57c5ae1a2a40e82db9 Author: Steve Frécinaux Date: Sun Dec 19 12:25:06 2010 +0100 Ensure the .pc files dependencies are up to date. To do so, we define all the requirements in configure.ac and use substitutions to set them in the .pc files. configure.ac | 26 +++++++++++++++----------- data/libpeas-1.0.pc.in | 2 +- data/libpeas-gtk-1.0.pc.in | 2 +- 3 files changed, 17 insertions(+), 13 deletions(-) commit 06d0ab718a77a74ad365c5a9d40e05a9310a0bd5 Author: Garrett Regier Date: Fri Dec 17 12:44:33 2010 -0800 Add a test-suite .gitignore | 9 + Makefile.am | 7 +- configure.ac | 21 ++ tests/Makefile.am | 68 +++++ tests/libpeas-gtk/Makefile.am | 56 ++++ tests/libpeas-gtk/plugin-manager-store.c | 291 +++++++++++++++++++ tests/libpeas-gtk/plugin-manager-view.c | 264 +++++++++++++++++ tests/libpeas-gtk/plugin-manager.c | 257 +++++++++++++++++ tests/libpeas-gtk/plugins/Makefile.am | 1 + .../plugins/builtin-configurable/Makefile.am | 21 ++ .../builtin-configurable/builtin-configurable.c | 75 +++++ .../builtin-configurable/builtin-configurable.h | 52 ++++ .../builtin-configurable.plugin | 9 + .../plugins/builtin-configurable/builtin-plugin.c | 149 ++++++++++ .../plugins/builtin-configurable/builtin-plugin.h | 55 ++++ tests/libpeas-gtk/plugins/configurable/Makefile.am | 19 ++ .../plugins/configurable/configurable-plugin.c | 79 +++++ .../plugins/configurable/configurable-plugin.h | 55 ++++ .../plugins/configurable/configurable.plugin | 8 + tests/libpeas-gtk/testing/Makefile.am | 21 ++ tests/libpeas-gtk/testing/testing.c | 222 ++++++++++++++ tests/libpeas-gtk/testing/testing.h | 43 +++ tests/libpeas/Makefile.am | 56 ++++ tests/libpeas/engine.c | 302 ++++++++++++++++++++ tests/libpeas/extension-set.c | 218 ++++++++++++++ tests/libpeas/extension.c | 277 ++++++++++++++++++ tests/libpeas/introspection/Makefile.am | 47 +++ .../libpeas/introspection/introspection-callable.c | 93 ++++++ .../libpeas/introspection/introspection-callable.h | 70 +++++ .../introspection/introspection-unimplemented.c | 39 +++ .../introspection/introspection-unimplemented.h | 52 ++++ tests/libpeas/plugin-info.c | 191 ++++++++++++ tests/libpeas/plugins/Makefile.am | 8 + tests/libpeas/plugins/callable-python/Makefile.am | 7 + .../callable-python/callable-python-plugin.py | 19 ++ .../plugins/callable-python/callable-python.plugin | 8 + tests/libpeas/plugins/callable/Makefile.am | 19 ++ tests/libpeas/plugins/callable/callable-plugin.c | 100 +++++++ tests/libpeas/plugins/callable/callable-plugin.h | 52 ++++ tests/libpeas/plugins/callable/callable.plugin | 8 + tests/libpeas/plugins/info-missing-iage.plugin | 3 + tests/libpeas/plugins/info-missing-module.plugin | 3 + tests/libpeas/plugins/info-missing-name.plugin | 3 + tests/libpeas/testing/Makefile.am | 18 ++ tests/libpeas/testing/testing.c | 146 ++++++++++ tests/libpeas/testing/testing.h | 34 +++ tests/plugins/Makefile.am | 12 + tests/plugins/builtin/Makefile.am | 18 ++ tests/plugins/builtin/builtin-plugin.c | 143 +++++++++ tests/plugins/builtin/builtin-plugin.h | 55 ++++ tests/plugins/builtin/builtin.plugin | 9 + tests/plugins/full-info.plugin | 13 + tests/plugins/has-dep/Makefile.am | 18 ++ tests/plugins/has-dep/has-dep-plugin.c | 143 +++++++++ tests/plugins/has-dep/has-dep-plugin.h | 55 ++++ tests/plugins/has-dep/has-dep.plugin | 9 + tests/plugins/loadable/Makefile.am | 18 ++ tests/plugins/loadable/loadable-plugin.c | 143 +++++++++ tests/plugins/loadable/loadable-plugin.h | 55 ++++ tests/plugins/loadable/loadable.plugin | 8 + tests/plugins/min-info.plugin | 4 + tests/plugins/self-dep/Makefile.am | 18 ++ tests/plugins/self-dep/self-dep-plugin.c | 143 +++++++++ tests/plugins/self-dep/self-dep-plugin.h | 55 ++++ tests/plugins/self-dep/self-dep.plugin | 9 + tests/plugins/unavailable.plugin | 9 + 66 files changed, 4491 insertions(+), 1 deletions(-) commit d68c0ce9134a65949f9f5d3e41b40593f5bd77d5 Author: Steve Frécinaux Date: Sun Dec 19 11:42:06 2010 +0100 Add autopoint-generated files to .gitignore. .gitignore | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) commit 73d648ac0fa9202063a71c2c18936189b6e61f69 Author: Garrett Regier Date: Fri Dec 17 12:42:29 2010 -0800 Added missing G_PARAM_STATIC_STRINGS to PeasObjectModule libpeas/peas-object-module.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) commit d417aea4b3904d4ee7c54fbb8751c5a4b3b41878 Author: Garrett Regier Date: Tue Dec 14 11:35:39 2010 -0800 Fix not emitting notify::loaded-plugins when PeasEngine is being destroyed libpeas/peas-engine.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) commit fcf624519ca3b26265a9c76bc022f865e2cc1bfe Author: Garrett Regier Date: Tue Dec 14 10:42:36 2010 -0800 Add a warning if IAge is not found when creating PeasPluginInfo libpeas/peas-plugin-info.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit 3e017846f32a02b14255979ea539b8cfc2710686 Author: Garrett Regier Date: Wed Dec 15 08:23:28 2010 -0800 Fix some doc strings (replace PeasUI with PeasGtk) libpeas/peas-i18n.c | 2 +- libpeas/peas-plugin-info.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit f50347cc5a977403a3e8bed4436e6ec4a5a2d589 Author: Garrett Regier Date: Wed Dec 15 08:21:14 2010 -0800 Warn if we fail to find the method in introspection. We were failing silently. This made troubleshooting harder. libpeas/peas-extension.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) commit 9359aa0615150f59ad13d582fa91ffa8003c0b4a Author: Garrett Regier Date: Wed Dec 15 00:25:57 2010 -0800 Plug a memory leak in peas_extension_call_valist() A GI object was not unreffed correctly. libpeas/peas-extension.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 5bd0a60b604d5db237f0e1c6e06aa19451bfa557 Author: Garrett Regier Date: Tue Dec 14 10:43:39 2010 -0800 Added G_GNUC_CONST to _get_type() that were missing it libpeas-gtk/peas-gtk-configurable.h | 2 +- libpeas/peas-plugin-loader.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit db211ad1f050db9be2d8fd76182733ff0a0c5a72 Author: Garrett Regier Date: Tue Dec 14 10:41:39 2010 -0800 Make the PeasEngine search-path docs make sense libpeas/peas-engine.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit fd11f8ca89acb272d29a58f5c7e2965b5db936e8 Author: Garrett Regier Date: Tue Dec 14 10:40:48 2010 -0800 Add a note in the docs about PeasEngine:loaded-plugins nacho asked how it could work to bind to it with GSettings. libpeas/peas-engine.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit a0c1ca02418b1034cc339a2bb6b83067770e10c7 Author: Garrett Regier Date: Tue Dec 14 10:38:26 2010 -0800 Don't show a plugin's description if it is NULL libpeas-gtk/peas-gtk-plugin-manager-store.c | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) commit c3361ddd87f193fab071407fabda59391805bf51 Author: Garrett Regier Date: Tue Dec 14 10:35:20 2010 -0800 Unload plugins in dispose to prevent segv When unloading plugins in finalize sometimes it would cause a segv because we emit a signal on an object with a refcount of 0. libpeas/peas-engine.c | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) commit 29714686f7b5cd26bd0bc5e16abda2c9aa34431b Author: Garrett Regier Date: Thu Dec 9 09:36:18 2010 -0800 Fix remaining s/libpeasui/libpeas-gtk/ issues libpeas-gtk/Makefile.am | 2 +- peas-demo/peas-demo.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 07341143aa598571a5baa2530a02b9a7b668e5fb Author: Garrett Regier Date: Thu Dec 9 09:35:30 2010 -0800 Fix emitting PeasExtensionSet::extension-removed Before is was not emitted when the extension set was being finalized because signals are not emitted in finalize but are in dispose. libpeas/peas-extension-set.c | 25 ++++++++++++++++++++----- 1 files changed, 20 insertions(+), 5 deletions(-) commit 8dd3f010a65e737e0ba892579372d8ce7f945e74 Author: Garrett Regier Date: Thu Dec 9 09:34:35 2010 -0800 Remove PeasParameterArray from public header. Its used only internally. libpeas/peas-extension-set.c | 5 +++++ libpeas/peas-extension-set.h | 13 ------------- 2 files changed, 5 insertions(+), 13 deletions(-) commit 877e658a9c6c334f0eccf6d0bfc6921f1e465e90 Author: Garrett Regier Date: Thu Dec 9 09:34:16 2010 -0800 Remove old comment libpeas/peas-extension-base.h | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) commit b7fb6917edef5b8da3531d5c2195a762957f470f Author: Garrett Regier Date: Thu Dec 9 09:33:43 2010 -0800 Fix peas_engine_set_loaded_plugins() when no plugins are to be loaded. Before it would segfault. libpeas/peas-engine.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit a02e8a1c6612d41c40608c93fc83ff667f3ae4a3 Author: Garrett Regier Date: Thu Dec 9 09:33:27 2010 -0800 Fix peas_engine_get_loaded_plugins() when there are not plugins. Before would return non-NULL junk now it returns NULL. libpeas/peas-engine.c | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) commit 4578a8417d32ba8ee30ed1d62e22af366e66c44f Author: Garrett Regier Date: Thu Dec 9 09:32:59 2010 -0800 Fix loading plugins with an invalid dependency Before the plugin would still be loaded and available. libpeas/peas-engine.c | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 deletions(-) commit 1da22586a008e1fc627f2742a6ccfa31529385b6 Author: Garrett Regier Date: Thu Dec 9 09:32:24 2010 -0800 Clarify that peas_engine_get_plugin_info() searches for the module name libpeas/peas-engine.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit da9932d4dccc14a0a30b0c39620507ecafd6b28e Author: Fran Diéguez Date: Mon Nov 29 17:23:14 2010 +0100 Updated Galician translations po/gl.po | 97 ++++++++++++++++++++++++++++++++++---------------------------- 1 files changed, 53 insertions(+), 44 deletions(-) commit 327473a6385e0b086a9e3d6b8f1f97c90126e351 Author: Paolo Borelli Date: Sat Nov 27 14:31:06 2010 +0100 Plug some memory leaks libpeas/peas-extension-set.c | 2 ++ libpeas/peas-extension-subclasses.c | 1 + loaders/python/peas-plugin-loader-python.c | 7 +++---- 3 files changed, 6 insertions(+), 4 deletions(-) commit 67f33fd8a004aaa524df3dce267b68aabd7ab963 Author: Jonh Wendell Date: Tue Nov 16 20:38:37 2010 -0300 Fix an typo in previous commit Which was blocking some method calls libpeas/peas-extension-subclasses.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit a2f98e51140286ff18a4442e2e7c39905afe40fb Author: Dan Williams Date: Thu Nov 11 11:27:23 2010 -0600 Fix handling of g_callable_info_get_n_args() g_callable_get_n_args() returns gint but libpeas treats the return value as guint in a few places. If introspection is somewhat broken (and thus the callable info that libpeas passes to g_callable_get_n_args() is NULL) then libpeas will execute a couple for-loops from 0 to GUINT_MAX due to the mistype. Also protect a few more paths that might get triggered due to missing introspection data. https://bugzilla.gnome.org/show_bug.cgi?id=633907 libpeas/peas-extension-set.c | 8 +++++++- libpeas/peas-extension-subclasses.c | 4 +++- libpeas/peas-extension.c | 5 ++++- libpeas/peas-introspection.c | 12 +++++++++--- loaders/seed/peas-extension-seed.c | 7 ++++++- 5 files changed, 29 insertions(+), 7 deletions(-) commit 5ecd4fb7d109fe0f49e162d16bddd7cf3059e214 Author: Dan Williams Date: Mon Nov 1 23:50:39 2010 -0500 Revert "Fix iteration of GCallable arguments" This reverts commit bb0cc262430d3ba9de06e86b76bf2c9520ddb335. More work is needed here; there are a number of locations that treat the return value of g_callable_info_get_n_args() as unsigned that need to be fixed... libpeas/peas-introspection.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit bb0cc262430d3ba9de06e86b76bf2c9520ddb335 Author: Dan Williams Date: Mon Nov 1 23:28:26 2010 -0500 Fix iteration of GCallable arguments g_callable_info_get_n_args() returns gint, not guint. So when g_callable_info_get_n_args() returns -1 for some reason (missing or bad introspection data) it got treated as a really big number, and libpeas would crash trying to free NULL GITypeInfo. libpeas/peas-introspection.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit d6696e392c26f963c35eba6a6384691a6655c39e Author: Kjartan Maraas Date: Sat Oct 16 21:15:42 2010 +0200 Updated Norwegian bokmål translation po/nb.po | 80 ++++++++++++++++++++++++++++++------------------------------- 1 files changed, 39 insertions(+), 41 deletions(-) commit 8c77eeb668f32dc59a5758821e85e92450b4394b Author: Javier Jardón Date: Fri Oct 8 05:38:47 2010 +0200 autogen.sh: remove unneded call to autopoint It's already called in gnome-autogen.sh autogen.sh | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit b8a11c010d8c72079166270edb2c6fae85a391d2 Author: Steve Frécinaux Date: Mon Oct 4 14:00:50 2010 +0200 Fix the example of a plugin info file in docs. The header has changed from [YourApp Plugin] to [Plugin]. libpeas/peas-plugin-info.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) commit 63f52e0d743ead67d8003bc60546fb299e155890 Author: Steve Frécinaux Date: Mon Oct 4 10:43:11 2010 +0200 Post-release version bump for 0.7.1 configure.ac | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)