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

lipsum: fixed deprecated gtk call for gtk3 #856

Merged
merged 1 commit into from
May 14, 2019

Conversation

lpaulsen93
Copy link
Contributor

This fixes a deprecation warning in the lipsum plugin for gtk3. No functional changes.

gtk_menu_item_new_with_mnemonic(). Starting from version 3.10.*/
#if GTK_CHECK_VERSION(3, 10, 0)
#define gtk_image_menu_item_new_with_mnemonic(icon_info) \
gtk_menu_item_new_with_mnemonic(icon_info)
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't seem like a good wrapper for general use in the util library since it returns a different type of widget.

While much more work, it might be better to add some kind of real image menu item replacement class that packs an optional icon and an accel label into a box, similar to the example on the GtkImageMenuItem docs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. But I guess I will then postpone that to a later time when it's really required. Here with lipsum there is no icon used at all. I will do the replacement in the lipsum file directly and remove the macro. If I find a use case later which really uses an icon I will go for your advice.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@frlan frlan merged commit f9e2c3c into geany:master May 14, 2019
@lpaulsen93 lpaulsen93 deleted the lipsum-gtk3 branch May 16, 2019 18:28
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