17 Commits

Author SHA1 Message Date
amrbashir
0a308be96b ci: Update lockfile on versioning PRs 2025-03-04 05:05:40 +02:00
Fabian-Lars
d36d564967 chore: Add rust-version (#271)
* chore: Add rust-version

* ci
2025-01-29 13:42:08 +02:00
Amr Bashir
d44b0ca695 ci: recognize contributors in releases 2024-06-06 20:06:40 +03:00
renovate[bot]
b678815f6e chore(deps): update rust crate wry to 0.37 (#156)
* chore(deps): update rust crate wry to 0.37

* fix build

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2024-02-22 02:21:46 +02:00
Morgan Hill
9c10715047 ci: add running test with miri to CI (#138)
For T1 Rust targets Miri is able to check for several forms of undefined
behavior that rustc can not.
2023-11-13 18:23:16 +02:00
amrbashir
ee0b43080d ci: matrix os -> platform 2023-10-24 04:17:03 +03:00
Amr Bashir
7bd75b8cd3 ci: update actions (#137)
* ci: update actions

* remove pnpm

* remove node

* sinplify checkout

* clippy on all platforms

* PR message

* fix clippy

* rename file

* name workflow
2023-10-24 04:06:35 +03:00
Amr Bashir
98701d0b32 refactor(gtk): accept a container param instead of creating it (#75)
* refactor(gtk): accept a container param instead of creating it

* fix build

* fix clippy
2023-07-25 22:01:35 +03:00
Amr Bashir
2e01d8a04c ci: remove windows-common-controls test 2023-06-19 22:34:29 +03:00
Amr Bashir
93c32f733f ci: use signle quotes 2023-06-19 22:00:27 +03:00
Amr Bashir
ac14222934 feat: add common-controls-v6 (#69) 2023-06-19 21:58:45 +03:00
amrbashir
e587421c64 chore: add license 2022-12-08 20:50:24 +02:00
Amr Bashir
812ff0d37a refactor: rewrite (#18)
* refactor: rewrite

* fix syncing check items and cleanup

* clippy

* Add `append`, `prepend` and `insert`

* accept different menu items in `*_list` methods

* add context menu for gtk

* add `with_items`

* add `items` getter

* chore: unreachable! and typos

* implement remove

* `*_list`  -> `*_items`

* fix winit example

* add `show_context_menu_for_gtk_window` on `Submenu` type

* Add windows implementation

* TextMenuItem -> MenuItem, MenuItem trait -> MenuEntry

* Add `PredfinedMenuItem`

* move internal mod into its own file

* update tao example to latest tao's `muda` branch

* fix build on linux with latest tao changes

* Fix accelerators on Linux

* update examples

* remove recursive removal of submenus

* remvoe gtk menu items recursively

* fix tao example on macos

* On Windows, remove parents hmenu when removing an item

* Add documentation

* update README.md

* use insert_items with postion 0 for prepend_items

* Add menu mnemonics in examples

* Add `ContextMenu` trait

* Add methods to `ContextMenu` trait necessary for tray icon

* fix linux build

* fix context menu on gtk

* Expose gtk::Menu in ContextMenu trait

* Revert context menu to create a gtk::Menu on each call

* clippy lints

* cleanup crate structure

* update docs

* Fix doc tests and links

* more docs fixes

* error handling

* macOS implementation (#19)

* partial macOS implementation

* fix context menu examples

* add accelerator support for macOS

* strip ampersands from titles on macOS

* add CMD_OR_CTRL shorthand for modifiers

* implement actions for predefined menu items on macos

* fix examples

* more predefined items

* implement insert for macos

* refactor macOS implementation

* menu state getters and setters on macOS

* implement remove for macOS

* code tweaks

* add show_context_menu_for_nsview for Submenu on macOS

* docs improvements

* allow adding item to the same menu multiple times on macOS

* implement `items` for macOS

* strip only single ampersands from menu titles

* add support for menu item actions on macOS

* add app name to macOS About, Hide, Quit menu items

* add methods to set app window and help menus on macOS

* fix clickable submenu titles on macOS

* refactor submenu for safe reuse on macOS

* fmt & clippy

* few cleanups

* fix docs

* clippy

* fix docs

* cleanup examples

* fix tests

* fix clippy??

* use cargo action instead

* ???

* Replace popUpContextMenu with popUpMenuPositioningItem

Co-authored-by: Caesar Schinas <caesar@caesarschinas.com>
Co-authored-by: Wu Wayne <yuweiwu@pm.me>
2022-11-23 18:29:52 +02:00
amrbashir
1f341d1e4e ci: run on all platforms, install sys deps 2022-11-06 14:25:20 +02:00
amrbashir
c7755a01b9 ci: fmt -> rustfmt 2022-11-06 14:13:18 +02:00
amrbashir
18f5b91106 ci: add test workflow 2022-10-27 20:04:35 +02:00
amrbashir
45af0f8c5c ci: add covector, audit, clippy and fmt 2022-10-27 20:01:24 +02:00