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

replace deprecated Gtk image menu item* #391

Merged
merged 2 commits into from
Oct 16, 2023
Merged

Conversation

raveit65
Copy link
Member

Debian CI build failed because of

GEN      org.mate.power.policy

/usr/bin/msgfmt: cannot locate ITS rules for org.mate.power.policy.in

make[2]: *** [Makefile:569: org.mate.power.policy] Error 1

https://app.travis-ci.com/github/mate-desktop/mate-power-manager/jobs/611594502#L4174
It's not related to PR bcause it fails in master too.
https://app.travis-ci.com/github/mate-desktop/mate-power-manager/jobs/608158792#L3413
Looks like the same issue than with mate-system-monitor mate-desktop/mate-system-monitor#254

@raveit65 raveit65 changed the title Gtk image menu item replace deprecated Gtk image menu item* Oct 15, 2023
Copy link
Member

@lukefromdc lukefromdc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works as promised, and a string search of the source code for
gtk_image_menu_item returns nothing, indication all direct uses of it have been found. The popup menus for the power manager icon, the brightness applet, and the inhibit applet all show their icons unless the gsettings value org->mate->desktop->interface-> menus-have-icons is set to FALSE. This preference works as before.

@lukefromdc lukefromdc requested a review from a team October 16, 2023 02:36
src/gpm-tray-icon.c Outdated Show resolved Hide resolved
@zhuyaliang
Copy link
Member

@raveit65 @raveit65 I made an error commit in the master branch. Can you help me delete this commit
f9a5396

@raveit65
Copy link
Member Author

raveit65 commented Oct 16, 2023

@zhuyaliang
Done, reverted.

@raveit65 raveit65 force-pushed the gtk-image-menu-item branch from fbb9d4e to fab6382 Compare October 16, 2023 09:17
Copy link
Member

@zhuyaliang zhuyaliang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix compilation warnings

@raveit65 raveit65 merged commit 8115cbe into master Oct 16, 2023
@raveit65 raveit65 deleted the gtk-image-menu-item branch October 16, 2023 10:40
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.

3 participants