Unsupported Gtk+ component though system Gtk+ library supports it
Submitted by gno..@..il.com
Created attachment 333083 Unable to create object with type GtkStackSwitcher
I am opening this bug as a developer who is new to Gtk / glade ( and with the assumption that there might be others who might share this problem )
When I see a UI file in a product, I get curious and open it in glade to see how it is done. I almost always get an error when I open such a UI file. It would say, a GTK component is unrecognized. The problem is that the UI file would load fine on my system, but will not open in Glade. After some research I would find, that the GTK component was added in a later Glade release.
I think it is mandatory for Glade and GTK+ development to go hand in hand, so when Gtk X.Y is installed in the system, the glade installed in the system should support all components in Gtk X.Y. Please correct me if I am wrong. AFAIK, this is not currently the case. One such example is below:
I was looking into the UI file from https://github.com/fossfreedom/alternative-toolbar/blob/master/ui/altlibrary.ui. This is a plugin for rhythmbox player. The UI file said the following:
- "Generated with glade 3.18.3" and
My system ( "Debian Jessie stable 8.2" ) meets both the criteria.
[firstname.lastname@example.org]$ pkg-config --modversion gtk+-3.0 3.14.5
[email@example.com]$ glade --version glade 3.18.3
So, I thought I should be able to open the file. But Glade complained "GtkStackSwitcher is unrecognized component". GtkStackSwitcher support was added only in Glade 3.19 ( Refer https://bugzilla.gnome.org/show_bug.cgi?id=738480#c12 ).
So, I tried building Glade 3.19 for my system. But, build failed as Glade 3.19 requires a higher package versions:
configure: error: Package requirements ( gtk+-3.0 >= 3.20.0 gmodule-2.0 libxml-2.0 >= 2.4.0 ) were not met:
Requested 'gtk+-3.0 >= 3.20.0' but version of GTK+ is 3.14.5 ).
Now, where did I go wrong ? Am I missing something ?