--- a/gplugin-gtk/data/plugin-info.ui Wed Jul 01 02:17:10 2020 -0500
+++ b/gplugin-gtk/data/plugin-info.ui Sun Jul 05 04:21:04 2020 -0500
@@ -240,11 +240,13 @@
- <object class="GtkLabel" id="dependencies">
+ <object class="GtkBox" id="dependencies_box"> <property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">0</property>
- <property name="yalign">0</property>
+ <property name="orientation">vertical</property> <property name="expand">False</property>
--- a/gplugin-gtk/gplugin-gtk-plugin-info.c Wed Jul 01 02:17:10 2020 -0500
+++ b/gplugin-gtk/gplugin-gtk-plugin-info.c Sun Jul 05 04:21:04 2020 -0500
@@ -18,6 +18,8 @@
#include <gplugin-gtk/gplugin-gtk-plugin-info.h>
+#include <glib/gi18n-lib.h> * SECTION:gplugin-gtk-plugin-info
* @title: Plugin Info Gtk Widgets
@@ -53,7 +55,7 @@
- GtkWidget *dependencies;
+ GtkWidget *dependencies_box; @@ -106,6 +108,7 @@
gchar *summary = NULL, *description = NULL, *id = NULL, *abi_version = NULL;
+ gchar **dependencies = NULL; guint32 abi_version_uint;
gboolean loq = FALSE, internal = FALSE;
const gchar *filename = NULL;
@@ -116,6 +119,12 @@
gtk_widget_destroy(GTK_WIDGET(iter->data));
+ /* remove all the children from the dependencies box */ + children = gtk_container_get_children(GTK_CONTAINER(info->dependencies_box)); + for(iter = children; iter; iter = iter->next) + gtk_widget_destroy(GTK_WIDGET(iter->data)); /* now get the info if we can */
if(GPLUGIN_IS_PLUGIN(info->plugin)) {
GPluginPluginInfo *plugin_info = gplugin_plugin_get_info(info->plugin);
@@ -137,6 +146,7 @@
"description", &description,
+ "dependencies", &dependencies, @@ -215,6 +225,34 @@
+ /* set the dependencies */ + for(i = 0; dependencies[i]; i++) { + widget = gtk_label_new(dependencies[i]); + gtk_widget_set_halign(widget, GTK_ALIGN_START); + gtk_widget_set_valign(widget, GTK_ALIGN_START); + GTK_BOX(info->dependencies_box), + gtk_widget_show(widget); + widget = gtk_label_new(_("(none)")); + GTK_BOX(info->dependencies_box), + gtk_widget_show(widget); + g_strfreev(dependencies); /******************************************************************************
@@ -339,7 +377,7 @@
gtk_widget_class_bind_template_child(
gtk_widget_class_bind_template_child(