Piyush Verma
Piyush Verma

Reputation: 51

Glade: Object has unrecognized type GtkStack

I get the following problem in Glade:

Screenshot1
Screenshot2

The app was originally made with GTK+ 3.20, but in my Ubuntu 16.04, I only have GTK+ 3.18.

Any sugesstions to fix this?

Upvotes: 1

Views: 116

Answers (1)

meskobalazs
meskobalazs

Reputation: 16041

You need to change the GTK+ version of the Glade file. GtkStack was introduced in GTK+ 3.10, so it will work with GTK+ 3.18. Most likely the version in the Glade file was set to 3.20, but you may set it to a lower value if you don't use newer APIs.

This is an old screenshot, but you get the point, you need to set an older toolkit version:

enter image description here

Note: My answer assumes that the application can run with older GTK+. If this is not the case, then you need to upgrade your GTK+ libriaries, or backport the application to GTK+ 3.18.

Upvotes: 1

Related Questions