gplugin/gplugin

When populating the store, make sure we set the loaded state correctly
feature/gplugin-gtk-view-cleanups
2019-11-07, Gary Kramlich
321a2d04a07b
Parents 6d8d5f52235a
Children a5e251b58087
When populating the store, make sure we set the loaded state correctly
--- a/gplugin-gtk/gplugin-gtk-store.c Thu Nov 07 21:20:25 2019 -0600
+++ b/gplugin-gtk/gplugin-gtk-store.c Thu Nov 07 21:26:34 2019 -0600
@@ -72,6 +72,7 @@
gplugin_gtk_store_add_plugin(GPluginGtkStore *store, GPluginPlugin *plugin) {
GtkTreeIter iter;
GPluginPluginInfo *info = gplugin_plugin_get_info(plugin);
+ GPluginPluginState state = gplugin_plugin_get_state(plugin);
GString *str = g_string_new("");
gchar *name = NULL, *summary = NULL;
@@ -90,7 +91,7 @@
gtk_list_store_append(GTK_LIST_STORE(store), &iter);
gtk_list_store_set(GTK_LIST_STORE(store), &iter,
- GPLUGIN_GTK_STORE_LOADED_COLUMN, FALSE,
+ GPLUGIN_GTK_STORE_LOADED_COLUMN, state == GPLUGIN_PLUGIN_STATE_LOADED,
GPLUGIN_GTK_STORE_PLUGIN_COLUMN, g_object_ref(plugin),
GPLUGIN_GTK_STORE_MARKUP_COLUMN, str->str,
-1);