glade creates GtkBox instead of GtkHBox or GtkVBox

Bug #822861 reported by Frederik Elwert on 2011-08-08
This bug affects 13 people
Affects Status Importance Assigned to Milestone
glade (Ubuntu)

Bug Description

Glade creates instances of abstract (non-instantiatable) types, e.g. GtkBox instead of GtkHBox/GtkVBox, GtkPaned instead of GTKHPaned/GtkVPaned, etc.

When loading such a ui file from builder, I get this error message:
"Warning: cannot create instance of abstract (non-instantiatable) type `GtkBox'"

When changing the types by hand in a text editor, the files work.

(This also affects quickly, as it uses glade as its interface designer for GTK apps.)

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: glade 3.10.0-3ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-7.9-generic 3.0.0
Uname: Linux 3.0.0-7-generic i686
Architecture: i386
Date: Mon Aug 8 20:42:28 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha i386 (20110803.1)
SourcePackage: glade
UpgradeStatus: No upgrade log present (probably fresh install)

Michal Suchanek (hramrach) wrote :

Glade 3.10 will not include support for gtk2.


Michal Suchanek (hramrach) wrote :

You can install the binary package from here:

It did not set my PC on fire but there are no guarantees, as always ;-)

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in glade (Ubuntu):
status: New → Confirmed
Richard Somlói (ricsipontaz) wrote :

I can cofirm this bug.

Changing GtkBox to GtkVBox or GtkHBox works for me

Sebastien Bacher (seb128) wrote :

thank you for your bug report, that's not a bug though, glade 3.10 is meant to be used with gtk3., you can install glade 3.8 as pointed in the comments if you want to work on gtk2

Changed in glade (Ubuntu):
importance: Undecided → Low
status: Confirmed → Invalid

The main issue was quickly using glade and PyGTK2.x, which broke quickly projects.

Now glade-gtk2 was packaged and quickly depends on that, so the main issue was resolved.

The remaining issue with glade 3.10 is that it allows to set GTK 2.x as the target version, while not generating compatible code. But this is only a minor issue and probably should be tracked elsewhere.

The glade 'cloud' be perfectly compatible with gtk2 with simple code changes.
In my opinion, this is just a way of pushing us to the development in gtk3

But anyway, this is really 'the future' :)

Drianos (drianhacon173) wrote :

Using netbeans and I get the same error, I try changing them manually but instead i get this error:
java.text.ParseException: Invalid object type `GtkVBox'

I tried using glade 3.8 but i get the same result. Using "java-gnome hackers" ppa didn't make a change. I checked mailing list and no solution for this but i found a strange explanation of someone who get it working with lazy initialization but i couldn't keep on with this. This shouldn't be this complicated, this combination is supposed to be used as rapid development technique and I already wasted several hours to get nothing.

Michal Suchanek (hramrach) wrote :

drianos, your problem is probably in Java and canot be resolved in glade

Drianos (drianhacon173) wrote :

Michal, I don't think so because I made a window with only a button and it didn't have any problem running the window.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.