gadgetviewer icon indicating copy to clipboard operation
gadgetviewer copied to clipboard

gtk3+ support

Open weiguangcui opened this issue 5 years ago • 3 comments
trafficstars

Is it possible to compile gadgetviewer with gtk3+? I tried to point the program to the correct folder, but it seems only look for gtk+-2.0.pc

checking for GTK+ - version >= 2.0.0... Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'

Thank you for any suggestions.

weiguangcui avatar Jul 30 '20 22:07 weiguangcui

I believe the gtk2 and 3 APIs are incompatible. Gadgetviewer uses the gtk2 API so at the moment it's not possible to compile it with gtk3. Are you able to install packages on your system? It may be that you already have the gtk-2 libraries but not the 'dev' package (which contains the headers and the .pc files, amongst other things). On Ubuntu I think something like 'sudo apt install libgtk2.0-dev' would do it.

For my own reference, I'm going to leave a link to this migration guide I found here: https://developer.gnome.org/gtk3/3.0/migrating.html

jchelly avatar Jul 31 '20 08:07 jchelly

I thought they are compatible, at least downwards. But it seems they are not. I will install gtk2+ for gadgetviewer, but it would be good to have gtk3+ supported as well. Thank you.

weiguangcui avatar Jul 31 '20 10:07 weiguangcui

Partially implemented in #23.

jchelly avatar Jun 22 '23 08:06 jchelly

Five years later, this finally seems to be working!

jchelly avatar Apr 11 '25 09:04 jchelly