Skip to content

chore(deps): bump wxdragon from 0.9.24 to 0.9.25 in /rust - #824

Merged
Orinks merged 1 commit into
devfrom
dependabot/cargo/rust/dev/wxdragon-0.9.25
Nov 29, 2026
Merged

Orinks merged 1 commit into
devfrom
dependabot/cargo/rust/dev/wxdragon-0.9.25

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Bumps wxdragon from 0.9.24 to 0.9.25.

Release notes

Sourced from wxdragon's releases.

v0.9.25

Breaking Changes

  • DropSource: set_data now takes &mut self and a data object by value with a 'static bound, rather than borrowing it. wxDropSource only stores the object's address, so passing a temporary or dropping the object before do_drag_drop left it pointing at freed memory. DropSource now owns the data until it is replaced or the source is dropped. Migration: make the source mutable and use source.set_data(data) instead of source.set_data(&data) (#263).
  • DataView: CustomDataViewTreeModel::new, its notification methods (item_added, items_added, item_deleted, items_deleted, item_changed, items_changed and item_value_changed), and DataViewItem::from_id_ptr are now unsafe. The model turns item IDs back into node references without checking them, so previously safe code could trigger undefined behaviour by supplying a made-up pointer or freeing a node while a control could still query it. Migration: audit pointer validity, stable node addresses and deletion notifications against the methods' safety contracts, then wrap calls in unsafe blocks. Examples now demonstrate these requirements (#261).

New Features

  • Events: Added get_raw_key_code and get_raw_key_flags to key events, wrapping wxKeyEvent::GetRawKeyCode and GetRawKeyFlags. The flags hold the scan code on Windows and the hardware key code on GTK, so an app can tell which physical key was pressed whatever the keyboard layout, which get_key_code and get_unicode_key can't.
  • Dialogs: Added Dialog::set_layout_adaptation_mode, get_layout_adaptation_mode, enable_layout_adaptation and is_layout_adaptation_enabled, with the DialogLayoutAdaptation enum, wrapping wxWidgets' dialog layout adaptation. A dialog with it on moves its contents into a scrolled window when it's too big for the display, such as with large fonts or a low resolution, and keeps its standard buttons outside it.
  • App: Added is_main_thread, wrapping wxIsMainThread, so code that can run on any thread can tell whether it may touch widgets directly or has to go through call_after.
  • Slider: Added SliderBuilder::with_natural_keys. The Windows trackbar lowers a slider's value for Up and Page Up; with natural keys, Up and Right raise it, Down and Left lower it, Page Up and Page Down move a tenth of the range, and Home and End go to the ends, on every platform. Each change sends wxEVT_SCROLL_CHANGED and wxEVT_SLIDER, so on_slider handlers see it.

Bug Fixes

  • Window: Fixed Window values returned by get_page, get_parent, get_event_object and other getters accessing freed windows after destruction. They now use WindowHandle, like concrete widgets: as_ptr returns null and widget methods become no-ops once the window is destroyed. Added Window::window_handle. Repeatedly wrapping the same live window now reuses its registration instead of adding another registry entry and destroy callback, and windows already being deleted are not registered again (#258).
  • Window / Events: Kept windows valid during their own destroy handlers, so get_event_object().as_ptr() can still be compared with the window to distinguish its destruction from a child's. Application destroy handlers now run before internal cleanup, which still runs if a handler consumes the event. A deferred destroy request no longer invalidates the handle before the event arrives, while repeated requests through cloned handles remain no-ops (#268).
  • Events: Fixed unbind_all removing wxDragon's internal destroy handlers, which left freed windows registered as valid and prevented TreeCtrl, ListCtrl and AuiManager cleanup. Internal lifetime bindings now survive both unbind and unbind_all, and unbind_all counts only application handlers it removes (#257).
  • TreeCtrl / ListCtrl: Fixed a child's destroy event freeing all custom item data while the control was still alive. Destroy events propagate to parents, so deleting the in-place label editor after an edit triggered the control's cleanup. Cleanup now runs only when the event object is the control itself (#259).
  • DataView: Fixed custom tree-model child arrays being freed with the wrong allocation layout when get_children returned a vector whose capacity exceeded its length. The FFI array now uses a boxed slice instead of rebuilding a vector with an assumed capacity; empty vectors with spare capacity no longer leak either (#260).
  • DataView: Fixed DataViewTreeCtrl::get_column reading beyond the column vector for an out-of-range position. The shared C shim now checks the column count, and the Rust getter returns None for positions that do not fit in u32 rather than truncating them (#262).
Changelog

Sourced from wxdragon's changelog.

0.9.25

Breaking Changes

  • DropSource: set_data now takes &mut self and a data object by value with a 'static bound, rather than borrowing it. wxDropSource only stores the object's address, so passing a temporary or dropping the object before do_drag_drop left it pointing at freed memory. DropSource now owns the data until it is replaced or the source is dropped. Migration: make the source mutable and use source.set_data(data) instead of source.set_data(&data) (#263).
  • DataView: CustomDataViewTreeModel::new, its notification methods (item_added, items_added, item_deleted, items_deleted, item_changed, items_changed and item_value_changed), and DataViewItem::from_id_ptr are now unsafe. The model turns item IDs back into node references without checking them, so previously safe code could trigger undefined behaviour by supplying a made-up pointer or freeing a node while a control could still query it. Migration: audit pointer validity, stable node addresses and deletion notifications against the methods' safety contracts, then wrap calls in unsafe blocks. Examples now demonstrate these requirements (#261).

New Features

  • Events: Added get_raw_key_code and get_raw_key_flags to key events, wrapping wxKeyEvent::GetRawKeyCode and GetRawKeyFlags. The flags hold the scan code on Windows and the hardware key code on GTK, so an app can tell which physical key was pressed whatever the keyboard layout, which get_key_code and get_unicode_key can't.
  • Dialogs: Added Dialog::set_layout_adaptation_mode, get_layout_adaptation_mode, enable_layout_adaptation and is_layout_adaptation_enabled, with the DialogLayoutAdaptation enum, wrapping wxWidgets' dialog layout adaptation. A dialog with it on moves its contents into a scrolled window when it's too big for the display, such as with large fonts or a low resolution, and keeps its standard buttons outside it.
  • App: Added is_main_thread, wrapping wxIsMainThread, so code that can run on any thread can tell whether it may touch widgets directly or has to go through call_after.
  • Slider: Added SliderBuilder::with_natural_keys. The Windows trackbar lowers a slider's value for Up and Page Up; with natural keys, Up and Right raise it, Down and Left lower it, Page Up and Page Down move a tenth of the range, and Home and End go to the ends, on every platform. Each change sends wxEVT_SCROLL_CHANGED and wxEVT_SLIDER, so on_slider handlers see it.

Bug Fixes

  • Window: Fixed Window values returned by get_page, get_parent, get_event_object and other getters accessing freed windows after destruction. They now use WindowHandle, like concrete widgets: as_ptr returns null and widget methods become no-ops once the window is destroyed. Added Window::window_handle. Repeatedly wrapping the same live window now reuses its registration instead of adding another registry entry and destroy callback, and windows already being deleted are not registered again (#258).
  • Window / Events: Kept windows valid during their own destroy handlers, so get_event_object().as_ptr() can still be compared with the window to distinguish its destruction from a child's. Application destroy handlers now run before internal cleanup, which still runs if a handler consumes the event. A deferred destroy request no longer invalidates the handle before the event arrives, while repeated requests through cloned handles remain no-ops (#268).
  • Events: Fixed unbind_all removing wxDragon's internal destroy handlers, which left freed windows registered as valid and prevented TreeCtrl, ListCtrl and AuiManager cleanup. Internal lifetime bindings now survive both unbind and unbind_all, and unbind_all counts only application handlers it removes (#257).
  • TreeCtrl / ListCtrl: Fixed a child's destroy event freeing all custom item data while the control was still alive. Destroy events propagate to parents, so deleting the in-place label editor after an edit triggered the control's cleanup. Cleanup now runs only when the event object is the control itself (#259).
  • DataView: Fixed custom tree-model child arrays being freed with the wrong allocation layout when get_children returned a vector whose capacity exceeded its length. The FFI array now uses a boxed slice instead of rebuilding a vector with an assumed capacity; empty vectors with spare capacity no longer leak either (#260).
  • DataView: Fixed DataViewTreeCtrl::get_column reading beyond the column vector for an out-of-range position. The shared C shim now checks the column count, and the Rust getter returns None for positions that do not fit in u32 rather than truncating them (#262).
Commits
  • 6413f07 Release v0.9.25
  • 79accee Update CHANGELOG, ready to release 0.9.25
  • 08abd3b Merge pull request #268 from trypsynth/destroy-event-object
  • 6c6aa11 Test a dropped dialog with a choice dialog, which doesn't disable the app and...
  • e89220e Keep a window valid in its own destroy handlers
  • d8a97da Merge pull request #266 from trypsynth/dialog-layout-adaptation
  • d484b7f Merge branch 'main' into dialog-layout-adaptation
  • e27d3b1 Merge pull request #265 from trypsynth/is-main-thread
  • e6dd50e Merge branch 'main' into is-main-thread
  • c96ab08 Merge branch 'main' into dialog-layout-adaptation
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Nov 26, 2026
@Orinks

Orinks commented Nov 29, 2026

Copy link
Copy Markdown
Owner

@dependabot rebase

@dependabot
dependabot Bot force-pushed the dependabot/cargo/rust/dev/wxdragon-0.9.25 branch from ea1a625 to 4e873f9 Compare November 29, 2026 21:46
@Orinks

Orinks commented Nov 29, 2026

Copy link
Copy Markdown
Owner

@dependabot rebase

@dependabot
dependabot Bot force-pushed the dependabot/cargo/rust/dev/wxdragon-0.9.25 branch from 4e873f9 to c2e1b9b Compare November 29, 2026 21:52
@Orinks

Orinks commented Nov 29, 2026

Copy link
Copy Markdown
Owner

@dependabot rebase

@dependabot
dependabot Bot force-pushed the dependabot/cargo/rust/dev/wxdragon-0.9.25 branch from c2e1b9b to 08f6b7f Compare November 29, 2026 21:57
@Orinks

Orinks commented Nov 29, 2026

Copy link
Copy Markdown
Owner

@dependabot rebase

Bumps [wxdragon](https://github.com/AllenDang/wxDragon) from 0.9.24 to 0.9.25.
- [Release notes](https://github.com/AllenDang/wxDragon/releases)
- [Changelog](https://github.com/AllenDang/wxDragon/blob/main/CHANGELOG.md)
- [Commits](AllenDang/wxDragon@v0.9.24...v0.9.25)

---
updated-dependencies:
- dependency-name: wxdragon
  dependency-version: 0.9.25
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/cargo/rust/dev/wxdragon-0.9.25 branch from 08f6b7f to 0e5568a Compare November 29, 2026 22:11
@Orinks
Orinks merged commit f131728 into dev Nov 29, 2026
6 checks passed
@Orinks
Orinks deleted the dependabot/cargo/rust/dev/wxdragon-0.9.25 branch November 29, 2026 22:22
@Orinks Orinks mentioned this pull request Nov 29, 2026
Orinks added a commit that referenced this pull request Nov 29, 2026
## Summary
Syncs `dev` into `main` again to bring in today's Dependabot updates:
#823 (prismer), #827 (notify-rust), #826 (url), #824 (wxdragon), and
#825 (sha2 0.11, including the hashing API fix in xtask and aw-ai). This
branch is `dev` with `main` merged in, resolved to dev's versions, and
its tree is identical to `dev`. A push to `main` publishes nothing.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant