I’m developing a new interface, but it depend from a custom widget which only work with Gtk2.
There are a way to use both versions, or I will must rewrite my app using Gtk2?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It depends on the widget, but, a single widget shouldn’t be too hard to port. Most of the time porting is relatively easy. They’ve also been working on a compatibility module which enables some of the older syntax to work with GTK 3. Check out https://live.gnome.org/PyGObject/IntrospectionPorting
I ported a few of my old applications by doing a few search/replace (things like gtk. becomes Gtk., ICON_SIZE_MENU becomes IconSize.MENU, etc.) and minor tweaks.
Ideally you would continue your app in GTK 3 and help them port their widget to the new API. You’re not going to want to be using GTK 2 forever.