Re: GTK_COMBO_BOX



Am Dienstag, den 03.08.2004, 16:35 +0800 schrieb Daniel Piccoli:
Hi,

I'm wondering how to convert the following code to gtk2. The button
field no longer exists in a gtk_combo_box

gtk_tooltips_set_tip (tooltips, GTK_COMBO_BOX(zoom_combo)->button,
                      _("Visible length"), NULL);


If you are converting 1.2 code, then zoom_combo is unlikely to be a
GtkComboBox, but rather a GtkCombo. Perhaps try GTK_COMBO (zoom_combo),
but make sure that you don't compile with -DGTK_DISABLE_DEPRECATED.
GtkCombo has been deprecated in favour of GtkComboBox, so you may want
to look into porting from GtkCombo to GtkComboBox later on.

Matthias




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]