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

error: 'gtk_tool_button_set_stock_id' is deprecated: Use 'gtk_tool_button_set_icon_name' instead [-Werror,-Wdeprecated-declarations] #433

Open
yurivict opened this issue Jun 3, 2023 · 3 comments

Comments

@yurivict
Copy link

yurivict commented Jun 3, 2023

/usr/ports/misc/iio-oscilloscope/work/iio-oscilloscope-0.16-master/oscplot.c:6856:10: error: 'gtk_tool_button_set_stock_id' is deprecated: Use 'gtk_tool_button_set_icon_name' instead [-Werror,-Wdeprecated-declarations]
         gtk_tool_button_set_stock_id(GTK_TOOL_BUTTON(priv->fullscreen_button), "gtk-fullscreen");
         ^
/usr/local/include/gtk-3.0/gtk/gtktoolbutton.h:96:1: note: 'gtk_tool_button_set_stock_id' has been explicitly marked deprecated here
GDK_DEPRECATED_IN_3_10_FOR(gtk_tool_button_set_icon_name)
^

Version: 0.16
clang-15
FreeBSD 13.2

@tfcollins
Copy link
Contributor

@yurivict thanks for the bug report. Unfortunately no one really develops on BSD on the team and CI is pretty nonexistent for it. If you can submit a fix that would be great otherwise this will likely be awhile before we can verify and fix on our end.

-Travis

@yurivict
Copy link
Author

yurivict commented Jun 18, 2023

This is a GTK-related error, not a BSD one.

What version of GTK do you use? Does it build with gtk3-3.24.34 ?

@nunojsa
Copy link
Contributor

nunojsa commented Dec 14, 2023

I can also confirm that building for Fedora is pretty broken... We need to either fix it or not treat deprecated stuff as an error (just delaying fixing the real issue but better than nothing for now I guess...).

And I would bet arch linux is likely also affected (will know about it tomorrow)

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

No branches or pull requests

3 participants