From 842dbb31bee5bbbf786de53495024e4e06e05d52 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Sat, 3 Feb 2024 20:20:32 +0800 Subject: [PATCH] check writable and ctor when listing properties of objects --- src/Palete/Gtk.vala | 32 +++++--------------------------- 1 file changed, 5 insertions(+), 27 deletions(-) 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; } -- 2.39.2