Re: GtkCellRendererCombo example?

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

 



On Sun, 2004-11-07 at 15:00, Murray Cumming wrote:
> Matthias wrote:
> > What problem are you seeing ?
> 
> I have it working now,
> http://cvs.gnome.org/viewcvs/gtkmm/examples/book/treeview/combo_renderer/
> 
> and I really like it's simplicity compared to the hacky thing that I've
> been using so far.
> 
> However, I did notice:
> 
> 1. It doesn't work at all unless you set the text_column property of the
> renderer. I think that it should probably use the first text column that
> it finds in the model, and it should warn if it doesn't find one.

doesn't sound like a major win to me.

> 2. I can't bind a GtkTreeModel* model column to the cell renderer's
> "model" property, maybe because the base type is reported as
> G_TYPE_INTERFACE instead of G_TYPE_OBJECT, in
> _gtk_tree_data_list_value_to_node(). Maybe we could assuming that all
> interfaces are gobjects?

This is an interesting one. I guess gsignal may need some enhancement to
support specifying parameters types by interfaces, then.

> 3. There's no way to have a Combo cell renderer that has multiple columns,
> such as the choice and a description of the choice. But I guess this would
> require access to the whole GtkComboBox API.

You can do that by connecting to the GtkCellRenderer::editing-started
signal, which has full access to the editable, i.e. the combo box.

Matthias

_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux