gplugin/gplugin

Fix plugin row properties

19 months ago, Elliott Sales de Andrade
5d5f6f079fc1
Parents 09a3e2c08076
Children 741b8a475cb7
Fix plugin row properties

They were neither installed nor notified.

Testing Done:
Compile only.

Reviewed at https://reviews.imfreedom.org/r/1834/
--- a/gplugin-gtk4/gplugin-gtk-plugin-row.c Sat Sep 24 22:46:56 2022 -0500
+++ b/gplugin-gtk4/gplugin-gtk-plugin-row.c Sat Sep 24 22:48:24 2022 -0500
@@ -383,6 +383,8 @@
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS);
+ g_object_class_install_properties(obj_class, N_PROPERTIES, properties);
+
/* signals */
/**
@@ -540,6 +542,8 @@
G_CALLBACK(gplugin_gtk_plugin_row_state_cb),
row);
}
+
+ g_object_notify_by_pspec(G_OBJECT(row), properties[PROP_PLUGIN]);
}
}
@@ -588,6 +592,7 @@
g_return_if_fail(GPLUGIN_GTK_IS_PLUGIN_ROW(row));
gtk_revealer_set_reveal_child(GTK_REVEALER(row->revealer), expanded);
+ g_object_notify_by_pspec(G_OBJECT(row), properties[PROP_EXPANDED]);
}
/**