Comments (3)
Sidenote, I've expanded upon the minimal example a bit.
If you add to widgetutils.nim
the following:
- line 243:
echo "Fully new add: ", childWidget.pointer.repr
- line 254:
echo "Remove Finally: ", child.widget.unwrapInternalWidget().pointer.repr
You can see where the individual GTKWidgets get fully added and removed.
Therefore you can see that this is an erroneous error message because you can see the widget getting added to ExpanderRow.
Example logs:
Fully new add: 000055ACA5F99E70
Fully new add: 000055ACA5FF5360
Fully new add: 000055ACA5F57C30 # This is the exact same pointer that later gets removed!!!
Remove Finally: 000055ACA5F57C30
(process:1257091): Gtk-WARNING **: 09:29:23.661: Tried to remove non-child 0x55aca5f57c30
I am currently assuming that maybe this is a lack of documentation on the GTK part that you're not intended to use Box Widgets (or any widget that isn't a PreferenceRow) with ExpanderRow.
I have opened a thread on gnome's discourse forum regarding this.
Maybe this will shine some light on the situation
from owlkettle.
I'm getting a bit closer here. This might actually be a bug in Adwaita and not owlkettle (see latest posts in the forum thread).
To test this I made a custom widget with expander-row and did creating the expanderRow Widget, creating the box, adding it and removing it directly in the beforeBuild hook:
#adw.nim
renderable DummyExpander of PreferencesRow:
hooks:
beforeBuild:
state.internalWidget = adw_expander_row_new()
let newBox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0.cint)
echo "NewBox Pointer: ", newBox.pointer.repr
adw_expander_row_add_row(state.internalWidget, newBox)
adw_expander_row_remove(state.internalWidget, newBox)
# example.nim
import owlkettle, owlkettle/adw
viewable App:
discard
method view(app: AppState): Widget =
result = gui:
Window:
DummyExpander()
adw.brew(gui(App()))
This also produces the issue.
I currently see this as a strong indicator with the issue not lying with owlkettle here.
from owlkettle.
Filed a bugreport with the adwaita repository on gnome's gitlab:
https://gitlab.gnome.org/GNOME/libadwaita/-/issues/758
from owlkettle.
Related Issues (20)
- playground file : cannot open ? HOT 4
- Keyboard shortcuts HOT 1
- how to draw circles HOT 2
- Add the ability to have circular references to Widgets (or at the very least Window) HOT 6
- failed to build examples on macos with nim2.0.0 and Apple M2 HOT 5
- how to feed stdin to external process and redirect stdout ? HOT 2
- Can't send notifications while using adwaita HOT 1
- Add the ability to dispatch events programmatically to any child within a Widget
- text_view widget : display multiple lines ? HOT 6
- Text View widget : thread process can not change text buffer HOT 15
- [Feature Request] Allow setting custom startup/shutdown events in brew procs HOT 14
- Provide utilities to gracefully shut down the GTK event loop HOT 1
- Fix some examples HOT 2
- Add "Guides" section to owlkettle docs HOT 5
- GlArea example HOT 5
- Add `adw.SpinRow` widget HOT 9
- error in Win 10 HOT 11
- Add a "Form-Generating"-feature to Owlkettle HOT 4
- Allow specifying arbitrary adwaita versions HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from owlkettle.