guile_gi question: gtk+ interface object?

2022-06-14 Thread Andy Tai
question: how to create object representing Gtk+ (version 3) interfaces? For example. (let (model (make ))) would fail because GtkTreeModel is an interface, not class derived from GObject. Thanks

Re: guile_gi question: gtk+ interface object?

2022-06-14 Thread Maxime Devos
Andy Tai schreef op di 14-06-2022 om 11:52 [-0700]: > question: how to create object representing Gtk+ (version 3) > interfaces? For example. > > (let (model (make ))) > > would failĀ  because GtkTreeModel is an interface, not class derived > from GObject. By definition, you cannot instatiate int

guile_gi question: gtk+ interface object?

2022-06-14 Thread Andy Tai
question: how to create object representing Gtk+ (version 3) interfaces? For example. (let (model (make ))) would fail because GtkTreeModel is an interface, not class derived from GObject. Thanks

Re: guile_gi question: gtk+ interface object?

2022-06-14 Thread Andy Tai
Hi, thanks for the reply. The interface in GObject level does not necessarily translate as is to GOOPS at guile level... the context of this question is (let ((iter (make )) (model (make ))) (define selected (tree-selection:get-selected! selection model iter)) get_selected(GtkTreeModel out mo