fix gdl dock object notify missing bugs
gdl can't emit dock object notify when change dock object property in glib 2.74 and above, this a patch to fix it. I'm not sure that is a glib's issue. These nofity must be emited when g_object_set is called, not only at construct stage
--- gdl-3.40.0/gdl/gdl-dock-object.c 2023-03-28 08:52:43.529641800 +0800
+++ gdl-3.40.0/gdl/gdl-dock-object-ricky.c 2023-03-28 08:48:42.480513900 +0800
@@ -220,7 +220,7 @@ gdl_dock_object_class_init (GdlDockObjec
g_param_spec_string ("long-name", _("Long name"),
_("Human readable name for the dock object"),
NULL,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT);
+ G_PARAM_READWRITE);
g_object_class_install_property (
object_class, PROP_LONG_NAME, properties[PROP_LONG_NAME]);
@@ -234,7 +234,7 @@ gdl_dock_object_class_init (GdlDockObjec
g_param_spec_string ("stock-id", _("Stock Icon"),
_("Stock icon for the dock object"),
NULL,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT);
+ G_PARAM_READWRITE);
g_object_class_install_property (
object_class, PROP_STOCK_ID, properties[PROP_STOCK_ID]);
Edited by Andre Klapper