--- a/gplugin-gtk/gplugin-gtk-plugin-info.c Sat Feb 15 19:06:26 2020 -0600
+++ b/gplugin-gtk/gplugin-gtk-plugin-info.c Sat Feb 15 19:17:01 2020 -0600
@@ -126,18 +126,19 @@
- g_object_get(G_OBJECT(plugin_info),
- "abi_version", &abi_version_uint,
- "description", &description,
+ "abi_version", &abi_version_uint, + "description", &description, /* fanagle the plugin name */
--- a/gplugin-gtk/gplugin-gtk-store.c Sat Feb 15 19:06:26 2020 -0600
+++ b/gplugin-gtk/gplugin-gtk-store.c Sat Feb 15 19:17:01 2020 -0600
@@ -77,10 +77,11 @@
gchar *name = NULL, *summary = NULL;
- g_object_get(G_OBJECT(info),
g_string_append_printf(str, "<b>%s</b>\n",
--- a/gplugin-gtk/gplugin-gtk-view.c Sat Feb 15 19:06:26 2020 -0600
+++ b/gplugin-gtk/gplugin-gtk-view.c Sat Feb 15 19:17:01 2020 -0600
@@ -241,9 +241,12 @@
GPluginGtkStore *store = gplugin_gtk_store_new();
- ret = g_object_new(GPLUGIN_GTK_TYPE_VIEW,
- "model", GTK_TREE_MODEL(store),
+ "model", GTK_TREE_MODEL(store), --- a/gplugin/gplugin-native-loader.c Sat Feb 15 19:06:26 2020 -0600
+++ b/gplugin/gplugin-native-loader.c Sat Feb 15 19:17:01 2020 -0600
@@ -227,14 +227,15 @@
/* now create the actual plugin instance */
- plugin = g_object_new(GPLUGIN_TYPE_NATIVE_PLUGIN,
+ GPLUGIN_TYPE_NATIVE_PLUGIN, /* now that the plugin instance owns the info, remove our ref */
--- a/gplugin/gplugin-plugin-info.h Sat Feb 15 19:06:26 2020 -0600
+++ b/gplugin/gplugin-plugin-info.h Sat Feb 15 19:17:01 2020 -0600
@@ -42,10 +42,11 @@
#define gplugin_plugin_info_new(id, abi_version, ...) \
- GPLUGIN_PLUGIN_INFO(g_object_new(GPLUGIN_TYPE_PLUGIN_INFO, \
- "abi-version", (abi_version), \
+ GPLUGIN_PLUGIN_INFO(g_object_new( \ + GPLUGIN_TYPE_PLUGIN_INFO, \ + "abi-version", (abi_version), \ const gchar *gplugin_plugin_info_get_id(GPluginPluginInfo *info);
--- a/gplugin/reference/native-plugins.xml Sat Feb 15 19:06:26 2020 -0600
+++ b/gplugin/reference/native-plugins.xml Sat Feb 15 19:17:01 2020 -0600
@@ -51,8 +51,7 @@
"description", "description",
/* gplugin_plugin_load is called by the loader when the plugin should
@@ -77,4 +76,4 @@
</programlisting></informalexample>
\ No newline at end of file
--- a/gplugin/tests/test-plugin-info.c Sat Feb 15 19:06:26 2020 -0600
+++ b/gplugin/tests/test-plugin-info.c Sat Feb 15 19:17:01 2020 -0600
@@ -87,7 +87,8 @@
const gchar * const r_dependencies[] = { "dependency", NULL };
- info = g_object_new(GPLUGIN_TYPE_PLUGIN_INFO,
+ GPLUGIN_TYPE_PLUGIN_INFO, "id", "gplugin-test/plugin-info-test",
"abi_version", GPLUGIN_NATIVE_PLUGIN_ABI_VERSION,
@@ -111,7 +112,8 @@
g_assert_true(GPLUGIN_IS_PLUGIN_INFO(info));
- g_object_get(G_OBJECT(info),
"abi_version", &abi_version,
@@ -164,10 +166,11 @@
g_assert_true(GPLUGIN_IS_PLUGIN_INFO(info));
- g_object_get(G_OBJECT(info),
- "abi-version", &abi_version,
+ "abi-version", &abi_version, test_string(id, "empty");
@@ -214,7 +217,8 @@
g_assert_true(GPLUGIN_IS_PLUGIN_INFO(info));
- g_object_get(G_OBJECT(info),
"abi_version", &abi_version,
@@ -263,11 +267,13 @@
const gchar * const *g_authors = NULL;
info = gplugin_plugin_info_new(
GPLUGIN_NATIVE_PLUGIN_ABI_VERSION,
g_authors = gplugin_plugin_info_get_authors(info);
@@ -284,11 +290,13 @@
const gchar * const *g_authors = NULL;
info = gplugin_plugin_info_new(
GPLUGIN_NATIVE_PLUGIN_ABI_VERSION,
g_authors = gplugin_plugin_info_get_authors(info);
@@ -306,11 +314,13 @@
const gchar * const *g_dependencies = NULL;
info = gplugin_plugin_info_new(
"test/single-dependency",
GPLUGIN_NATIVE_PLUGIN_ABI_VERSION,
"dependencies", dependencies,
g_dependencies = gplugin_plugin_info_get_dependencies(info);
@@ -327,12 +337,13 @@
const gchar * const *g_dependencies = NULL;
info = gplugin_plugin_info_new(
"test/single-dependencie",
GPLUGIN_NATIVE_PLUGIN_ABI_VERSION,
"dependencies", dependencies,
g_dependencies = gplugin_plugin_info_get_dependencies(info);
--- a/python/gplugin-python-loader.c Sat Feb 15 19:06:26 2020 -0600
+++ b/python/gplugin-python-loader.c Sat Feb 15 19:17:01 2020 -0600
@@ -170,14 +170,15 @@
/* now that we have everything, create the plugin */
- plugin = g_object_new(GPLUGIN_PYTHON_TYPE_PLUGIN,
+ GPLUGIN_PYTHON_TYPE_PLUGIN, --- a/tcc/gplugin-tcc-core.c Sat Feb 15 19:06:26 2020 -0600
+++ b/tcc/gplugin-tcc-core.c Sat Feb 15 19:17:01 2020 -0600
@@ -41,7 +41,8 @@
"version", GPLUGIN_VERSION,
"license-id", "LGPL-2.0-or-later",
"summary", "A plugin that can load C source plugins",
- "description", "This plugin allows the loading of plugins written in C.",
+ "description", "This plugin allows the loading of plugins written in " "website", GPLUGIN_WEBSITE,