Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initialization of a variable meant to be GtkTreeModel #127

Open
andy-tai opened this issue Jun 15, 2022 · 0 comments
Open

initialization of a variable meant to be GtkTreeModel #127

andy-tai opened this issue Jun 15, 2022 · 0 comments

Comments

@andy-tai
Copy link

andy-tai commented Jun 15, 2022

mail list thread: https://lists.gnu.org/archive/html/guile-user/2022-06/msg00024.html

how to initialize a variable meant to be a GtkTreeModel, a Gtk "interface"?

(selection is a valid GtkTreeSelection obtained elsewhere earlier)
This does not work (the second line would result in error):

(let ((iter (make <GtkTreeIter>))
 (model (make <GtkTreeModel>)))
 (define selected (tree-selection:get-selected! selection model iter))

This does not work either, error out on the second line:

(let ((iter (make <GtkTreeIter>))
  (model (make <GtkListStore>)))
  (define selected (tree-selection:get-selected! selection model iter))

as GtkListStore implements GtkTreeModel but GOOPS says GtkListStore is not the expected type for the second argument

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant