-
-
Notifications
You must be signed in to change notification settings - Fork 728
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
Gtk4 #3857
base: master
Are you sure you want to change the base?
Gtk4 #3857
Conversation
Signed-off-by: Viktar Lukashonak <[email protected]>
Add suport for menus and menu actions in label modules with GTK4. This changes the format of the interface file used for the menu. Instead of defining a GtkMenu, use `<menu>` to define a menu model. TODO: Update documentation
Also fix a warning about unneeded catch in power_profiles
Resolving conflicts with f9acc1f (Alexays#3730) was a somewhat complicated. Conflicts: include/AModule.hpp src/AModule.cpp src/bar.cpp src/modules/network.cpp src/util/backlight_backend.cpp
Changed the base to master, because the gtk4 branch on this repo is very out of date. I also merged current master into the branch. For some reason I can't make a PR against the LukashonakV repo. |
if (dir == SCROLL_DIR::NONE) { | ||
return true; | ||
} | ||
|
||
int step = 5; | ||
int step{5}; | ||
if (config_["scroll-step"].isInt()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it ever make sense for this to be negative? If not, we could read this as a UInt, and avoid some casting
This is based off of https://github.com/LukashonakV/Waybar/tree/gtk4 (see also #2956), but adds back suport for the general
menu
configuration, using aGio::MenuModel
andGtk::PopoverMenu
instead of aGtk::Menu
.