From: Alan Knowles Date: Sat, 3 Feb 2024 12:20:32 +0000 (+0800) Subject: check writable and ctor when listing properties of objects X-Git-Tag: release-5.0.2~9 X-Git-Url: http://git.roojs.org/?p=roobuilder;a=commitdiff_plain;h=842dbb31bee5bbbf786de53495024e4e06e05d52 check writable and ctor when listing properties of objects --- diff --git a/src/Palete/Gtk.vala b/src/Palete/Gtk.vala index 257b65824..e29f259f5 100644 --- a/src/Palete/Gtk.vala +++ b/src/Palete/Gtk.vala @@ -3,33 +3,7 @@ using Gtk; /** -Palete.map - -> contains a list of parent and child classes - // eg. what can be added to what. - -// defaults - -// node properties?? - (mostly from - -Known issues with Palete - - -Object Add: - -SourceView/TextView - can add widget (which doesnt really seem to work) - as it's subclassing a container -Gtk.Table - adding children? (nothing is currently allowed. - - -Properties list -- need to remove widgets from this.. -- help / show source interface etc..? -- make wider? - -Events list -- signature on insert -- show source interface / help - +This basically provides all the data needed to add stuff to gtk objects */ @@ -231,6 +205,10 @@ namespace Palete { if (val.is_deprecated) { continue; } + if (!val.is_writable && !val.ctor_only ) { // if it's ctor we accept it. + continue; + } + if (val.type == "GLib.Object") { /// this is practually everything? ?? shoud we display it as a property? continue; }