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

Where are the symbols of (stklos gtklos)? #696

Open
jpellegrini opened this issue Oct 11, 2024 · 2 comments
Open

Where are the symbols of (stklos gtklos)? #696

jpellegrini opened this issue Oct 11, 2024 · 2 comments

Comments

@jpellegrini
Copy link
Contributor

Hi @egallesio !

I got into extensions/gtklos and did this:

make STKLOS_GTK_DIR=/usr/lib/x86_64-linux-gnu/
sudo make install

Thenstarted the REPL:

stklos> (load-path (cons "/usr/lib/x86_64-linux-gnu/" (load-path)))
stklos> (import (stklos gtklos))

So, there were no errors when I did the import. The module is there:

stklos> (all-modules )
(#[module stklos/gtklos] #[module scheme/write] #[module scheme/base] #[module REPL-READLINE] #[module READLINE] #[module REPL] #[module SRFI-0] #[module MBE] #[module STKLOS-OBJECT] #[module STKLOS-COMPILER] #[module SCHEME] #[module stklos])

But..

stklos> (define w (make <window> #:tile "A first window"))
**** Error:
%execute: symbol '<window>' unbound in module 'stklos'

Hm, what's going on?

stklos> (module-exports 'stklos/gtklos)
(kill-idle when-idle timeout)

Where are all the symbols?

@egallesio
Copy link
Owner

Hi @jpellegrini,

That's weird. Does the run-demos script in extensions/gtklos work?

If I do exactly what you did, I have:

stklos> (import (stklos gtklos))
stklos>  (module-exports 'stklos/gtklos)
(<canvas-text> <canvas-rectangle> <canvas-path> <canvas-line> <canvas-image> <canvas-ellipse> <canvas> <font-dialog> make-file-selector-dialog use-preview-labelshow-hidden select-multiple <file-dialog> show-editor <color-dialog> make-simple-message-dialog dialog-run use-header-bar <dialog> text-paste-clipboard text-copy-clipboard text-cut-clipboard text-write-file text-read-file text-wrap text-overwrite text-monospace text-indent cursor-visible accepts-tab text-buffer <text>text-editable text-visibility max-length cursor-position <entry> add-items-to-menubar <menu-separator-item> inconsistent draw-as-radio <menu-check-item> accel-path right-justified <menu-item> tearoff-title tearoff-state reserve-toggle-sizeactive <menu> <menu-bar> items <entry-combobox> <combobox> group-selected <radio-button> <check-button> use-underline use-stock relief focus-on-click image <button> <separator> window-placement vpolicy hpolicy overlay-scrolling max-content-height min-content-height max-content-width min-content-width <scroll> page-size page-increment step-increment adjustement-upper adjustement-lower <gtk-adjustement> increment upper lower value-pos has-origin draw-value digits <scale> progress-bar-pulse pulse-step inverted show-text value <progress-bar> justify selectable lines <label> get-image-pixbuf file-name <image> image-path add-items-to-toolbar command icon-name text <toolbar-button-item> <toolbar-separator-item> toolbar-style show-arrow icon-size <toolbar> show-close-button has-subtitle decoration-layout subtitle <header-bar> column-homogeneous row-homogeneous column-spacingrow-spacing <grid> <vframe> <hframe> shadow <frame> <vwindow> <hwindow> modal height width resizable title transient <window> <vbox> <hbox> orientation spacinghomogeneous padding fill expand <gtk-box> container-info container-remove! container-add! get-widget-height get-widget-width event-connect-after event-connect destroy ypad xpad yalign xalign tooltip width-request sensitive visible name height-request has-focus has-default can-default parent internal-arrange-widget realize-widget gtk-main start-interactive-gtk event-describe event-keyval event-type event-y event-x event-button event-modifiers event-char g-signal-connect-afterg-signal-connect kill-idle when-idle timeout)
stklos> 

@jpellegrini
Copy link
Contributor Author

Does the run-demos script in extensions/gtklos work?

Uh. It works! (?!?)
I wonder why it won't find the symbols fron the REPL.

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

2 participants