This currently creates a **placeholder** widget that simply displays the setting value. I do have a local copy with proper widgets for most cases, but I need to go through and confirm that everything useful is covered (`GVariant` is very flexible, but I think settings are less so.)
Additionally, because of the way that settings are loaded from the devenv, we don't get the summary/description, so those won't load just yet. I've left those out of here for now so this only displays the key name. Once https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2893 is complete, then we can put everything into a resource and the summary/description will work properly.
Testing Done:
Compiled only.
Reviewed at https://reviews.imfreedom.org/r/2129/
/*
* Copyright (C) 2011-2020 Gary Kramlich <grim@reaperworld.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <https://www.gnu.org/licenses/>.
*/
#include<glib/gi18n-lib.h>
#include<gplugin.h>
#include<gplugin-native.h>
#include"gplugin-python3-loader.h"
#include"gplugin-python3-plugin.h"
staticGPluginLoader*loader=NULL;
staticGPluginPluginInfo*
gplugin_python3_query(G_GNUC_UNUSEDGError**error)
{
/* clang-format-11 formats this correctly, so this can be removed then. */
/* clang-format off */
constgchar*constauthors[]={
"Gary Kramlich <grim@reaperworld.com>",
NULL};
/* clang-format on */
/* clang-format off */
returngplugin_plugin_info_new(
"gplugin/python3-loader",
GPLUGIN_NATIVE_PLUGIN_ABI_VERSION,
"internal",TRUE,
"auto-load",TRUE,
"name","Python3 Plugin Loader",
"version",GPLUGIN_VERSION,
"license-id","LGPL-2.0-or-later",
"summary","A plugin that can load python plugins",
"description","This plugin allows the loading of plugins written in "