[Gtk-sharp-list] treeview toggled not changing
George Farris
george@gmsys.com
13 Jun 2003 23:27:35 -0700
Hi all,
I've set up a treeview list with a type Toggled and it will display
properly and I can set the Boolean state with a :
ItemStore.SetValue (iter, 0, new GLib.Value (true));
the column is created like so:
TreeViewColumn column = new TreeViewColumn ();
CellRendererToggle toggle = new CellRendererToggle ();
toggle.Activatable = true;
toggle.Toggled += new ToggledHandler (enabled_toggled);
column.Title = title;
column.PackStart (toggle, false);
column.AddAttribute (toggle, "active", col);
tree.AppendColumn(column);
public void enabled_toggled (object o, GtkSharp.ToggledArgs args)
{
Console.WriteLine("toggled {0}", args);
}
The enabled_toggled works when I click the little checkbox but the
actual gui state doesn't change when clicked, the check mark never
disappears. Is it supposed to be changed manually with the signal? I
would have thought it would just change when clicked.
--
George Farris <george@gmsys.com>