Re: Gtk::CellLayout & Gtk::TreeModel
- From: Murray Cumming <murrayc murrayc com>
- To: rope-walker yandex ru
- Cc: gtkmm-list gnome org
- Subject: Re: Gtk::CellLayout & Gtk::TreeModel
- Date: Tue, 07 Feb 2006 17:55:18 +0100
On Tue, 2006-02-07 at 17:48 +0300, Volosatov Alexander wrote:
> I try todo something like in "gtk-demo->Combo boxes" when
> parent of tree is not sensitive.
> I try to understand gtk code, and convert it into gtkmm,
> but ...
> GTK:
> ------------------------------------------------------
> static void
> is_capital_sensitive (GtkCellLayout *cell_layout,
> GtkCellRenderer *cell,
> GtkTreeModel *tree_model,
> GtkTreeIter *iter,
> gpointer data)
> {
> gboolean sensitive;
> sensitive = !gtk_tree_model_iter_has_child (tree_model, iter);
> g_object_set (cell, "sensitive", sensitive, NULL);
This is setting a "property".
> }
[snip]
> //has no member .sensitive()
> renderer.sensitive(sens);
renderer.property_sensitive() = sens;
http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1CellRenderer.html#5ab4af7d6700fb16b0747aca3ed112ea
This has no set/get_sensitive() methods. Maybe it should have.
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]