Re: gtk_combo_box_get_active_text in 2.4



On Wed, 2004-11-24 at 14:24 +0100, Hubert Sokolowski wrote:
when using code from 2.5.5
GtkTreeIter iter;
  gchar *text = NULL;

  if (gtk_combo_box_get_active_iter (combo_box, &iter))
    gtk_tree_model_get (combo_box->priv->model, &iter,
                        0, &text, -1);

I get error while compilation

error: dereferencing pointer to incomplete type

You can't access widget internals like that. The compiler doesn't
know anything about the memory pointed at by combo_box->priv.

Matthias




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