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

Gtk4 #3857

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Gtk4 #3857

wants to merge 5 commits into from

Conversation

tmccombs
Copy link

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 a Gio::MenuModel and Gtk::PopoverMenu instead of a Gtk::Menu.

LukashonakV and others added 5 commits November 1, 2024 23:44
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
@tmccombs tmccombs changed the base branch from gtk4 to master January 1, 2025 07:58
@tmccombs
Copy link
Author

tmccombs commented Jan 1, 2025

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()) {
Copy link
Author

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

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

Successfully merging this pull request may close these issues.

2 participants