Bill Pringlemeir wrote:
> I have GTK2 2.2.4.  I am compiling from anon cvs...

> The type "GtkComboBox" is undefined when I try to compile.  Also, I
> have a gtkcombo.h with GTK_COMBO(obj), but I can not find a
> GTK_COMBO_BOX() macro.  If I modify the function as above, I have
> linker errors....
[...]
> There are also pointer converted to integer "warnings".  I think this
> is because "GTK_COMBO_BOX()" is undefined and the 'gcc' is creating an
> implicit prototype.  Is "ComboBox" different than "Combo", or where
> things just renamed in some GTK 2 version?

GtkComboBox is internally completely different from GtkCombo also it's
the same thing on the surface. GtkCombo is a deprecated widget type
because it uses an old Gtk+ 1.2 widget internally. GtkComboBox was
added in Gtk+ 2.4. Since this code is generated with Glade it's not
simple to use whatever type is available. I have recently updated
to Gtk+ 2.8 but if you still use Gtk+ 2.2 I guess other people do so
as well.

Shameless plug: If your X server and graphics hardware supports OpenGL
acceleration, you probably want to update to Gtk+ 2.8 because it uses
"cairo" which takes advantage of OpenGL for (2D) rendering. Further,
the performance killer in Gtk+ 2.x is really the font-rendering that
uses "Pango". I've recently read that they are know working on
optimizing Pango for performance, so we can probably expect performance
boosts from Gtk+ 2.x in future releases.

-- 
Christian

Attachment: pgp0VDkJeUc6P.pgp
Description: PGP signature

Reply via email to