gplugin/gplugin

Add a settings list to plugins page

17 months ago, Elliott Sales de Andrade
bc5f36d168a5
Add a settings list to plugins page

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/>.
*/
#if !defined(GPLUGIN_GLOBAL_HEADER_INSIDE) && !defined(GPLUGIN_COMPILATION)
#error "only <gplugin.h> may be included directly"
#endif
#ifndef GPLUGIN_VERSION_H
#define GPLUGIN_VERSION_H
#include <gplugin/gplugin-version-defs.h>
#define GPLUGIN_VERSION_CHECK(major, minor, micro) \
((major) == GPLUGIN_MAJOR_VERSION && \
((minor) < GPLUGIN_MINOR_VERSION || \
((minor) == GPLUGIN_MINOR_VERSION && (micro) <= GPLUGIN_MICRO_VERSION)))
#include <glib.h>
G_BEGIN_DECLS
const gchar *gplugin_version_check(guint major, guint minor, guint micro);
gint gplugin_version_compare(const gchar *v1, const gchar *v2);
G_END_DECLS
#endif /* GPLUGIN_VERSION_H */