mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-12 09:45:31 +00:00
flush
svn path=/trunk/gtk-sharp/; revision=39607
This commit is contained in:
parent
be5138c90b
commit
c672ddc7a3
|
@ -48,7 +48,7 @@ namespace GtkDemo
|
||||||
// create tree view
|
// create tree view
|
||||||
TreeView treeView = new TreeView (store);
|
TreeView treeView = new TreeView (store);
|
||||||
treeView.RulesHint = true;
|
treeView.RulesHint = true;
|
||||||
TreeSelection treeSelection = treeView.Selection;
|
TreeSelection treeSelection = treeView.Selection;
|
||||||
treeSelection.Mode = SelectionMode.Multiple;
|
treeSelection.Mode = SelectionMode.Multiple;
|
||||||
AddColumns (treeView);
|
AddColumns (treeView);
|
||||||
scrolledWindow.Add (treeView);
|
scrolledWindow.Add (treeView);
|
||||||
|
@ -63,9 +63,9 @@ namespace GtkDemo
|
||||||
this.ShowAll ();
|
this.ShowAll ();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ItemToggled (object o, ToggledArgs args)
|
private void ItemToggled (object sender, ToggledArgs args)
|
||||||
{
|
{
|
||||||
GLib.Object cellRendererToggle = (GLib.Object) o;
|
CellRendererToggle cellRendererToggle = sender as CellRendererToggle;
|
||||||
int column = (int) cellRendererToggle.Data["column"];
|
int column = (int) cellRendererToggle.Data["column"];
|
||||||
|
|
||||||
Gtk.TreeIter iter;
|
Gtk.TreeIter iter;
|
||||||
|
@ -82,8 +82,7 @@ namespace GtkDemo
|
||||||
// column for holiday names
|
// column for holiday names
|
||||||
CellRendererText rendererText = new CellRendererText ();
|
CellRendererText rendererText = new CellRendererText ();
|
||||||
rendererText.Xalign = 0.0f;
|
rendererText.Xalign = 0.0f;
|
||||||
GLib.Object ugly = (GLib.Object) rendererText;
|
rendererText.Data ["column"] = Column.HolidayName;
|
||||||
ugly.Data ["column"] = Column.HolidayName;
|
|
||||||
TreeViewColumn column = new TreeViewColumn ("Holiday", rendererText,
|
TreeViewColumn column = new TreeViewColumn ("Holiday", rendererText,
|
||||||
"text", Column.HolidayName);
|
"text", Column.HolidayName);
|
||||||
treeView.InsertColumn (column, (int) Column.HolidayName);
|
treeView.InsertColumn (column, (int) Column.HolidayName);
|
||||||
|
@ -91,8 +90,7 @@ namespace GtkDemo
|
||||||
// alex column
|
// alex column
|
||||||
CellRendererToggle rendererToggle = new CellRendererToggle ();
|
CellRendererToggle rendererToggle = new CellRendererToggle ();
|
||||||
rendererToggle.Xalign = 0.0f;
|
rendererToggle.Xalign = 0.0f;
|
||||||
ugly = (GLib.Object) rendererToggle;
|
rendererToggle.Data ["column"] = Column.Alex;
|
||||||
ugly.Data ["column"] = Column.Alex;
|
|
||||||
rendererToggle.Toggled += new ToggledHandler (ItemToggled);
|
rendererToggle.Toggled += new ToggledHandler (ItemToggled);
|
||||||
rendererToggle.Visible = true;
|
rendererToggle.Visible = true;
|
||||||
rendererToggle.Activatable = true;
|
rendererToggle.Activatable = true;
|
||||||
|
@ -106,8 +104,7 @@ namespace GtkDemo
|
||||||
// havoc column
|
// havoc column
|
||||||
rendererToggle = new CellRendererToggle ();
|
rendererToggle = new CellRendererToggle ();
|
||||||
rendererToggle.Xalign = 0.0f;
|
rendererToggle.Xalign = 0.0f;
|
||||||
ugly = (GLib.Object) rendererToggle;
|
rendererToggle.Data ["column"] = Column.Havoc;
|
||||||
ugly.Data ["column"] = Column.Havoc;
|
|
||||||
rendererToggle.Toggled += new ToggledHandler (ItemToggled);
|
rendererToggle.Toggled += new ToggledHandler (ItemToggled);
|
||||||
column = new TreeViewColumn ("Havoc", rendererToggle, "active", (int) Column.Havoc);
|
column = new TreeViewColumn ("Havoc", rendererToggle, "active", (int) Column.Havoc);
|
||||||
column.Visible = true;
|
column.Visible = true;
|
||||||
|
@ -121,8 +118,7 @@ namespace GtkDemo
|
||||||
// tim column
|
// tim column
|
||||||
rendererToggle = new CellRendererToggle ();
|
rendererToggle = new CellRendererToggle ();
|
||||||
rendererToggle.Xalign = 0.0f;
|
rendererToggle.Xalign = 0.0f;
|
||||||
ugly = (GLib.Object) rendererToggle;
|
rendererToggle.Data ["column"] = Column.Tim;
|
||||||
ugly.Data ["column"] = Column.Tim;
|
|
||||||
rendererToggle.Toggled += new ToggledHandler (ItemToggled);
|
rendererToggle.Toggled += new ToggledHandler (ItemToggled);
|
||||||
column = new TreeViewColumn ("Tim", rendererToggle, "active", (int) Column.Tim);
|
column = new TreeViewColumn ("Tim", rendererToggle, "active", (int) Column.Tim);
|
||||||
column.Visible = true;
|
column.Visible = true;
|
||||||
|
@ -136,8 +132,7 @@ namespace GtkDemo
|
||||||
// owen column
|
// owen column
|
||||||
rendererToggle = new CellRendererToggle ();
|
rendererToggle = new CellRendererToggle ();
|
||||||
rendererToggle.Xalign = 0.0f;
|
rendererToggle.Xalign = 0.0f;
|
||||||
ugly = (GLib.Object) rendererToggle;
|
rendererToggle.Data ["column"] = Column.Owen;
|
||||||
ugly.Data ["column"] = Column.Owen;
|
|
||||||
rendererToggle.Toggled += new ToggledHandler (ItemToggled);
|
rendererToggle.Toggled += new ToggledHandler (ItemToggled);
|
||||||
column = new TreeViewColumn ("Owen", rendererToggle, "active", (int) Column.Owen);
|
column = new TreeViewColumn ("Owen", rendererToggle, "active", (int) Column.Owen);
|
||||||
column.Visible = true;
|
column.Visible = true;
|
||||||
|
@ -151,8 +146,7 @@ namespace GtkDemo
|
||||||
// dave column
|
// dave column
|
||||||
rendererToggle = new CellRendererToggle ();
|
rendererToggle = new CellRendererToggle ();
|
||||||
rendererToggle.Xalign = 0.0f;
|
rendererToggle.Xalign = 0.0f;
|
||||||
ugly = (GLib.Object) rendererToggle;
|
rendererToggle.Data ["column"] = Column.Dave;
|
||||||
ugly.Data ["column"] = Column.Dave;
|
|
||||||
rendererToggle.Toggled += new ToggledHandler (ItemToggled);
|
rendererToggle.Toggled += new ToggledHandler (ItemToggled);
|
||||||
column = new TreeViewColumn ("Dave", rendererToggle, "active", (int) Column.Dave);
|
column = new TreeViewColumn ("Dave", rendererToggle, "active", (int) Column.Dave);
|
||||||
column.Visible = true;
|
column.Visible = true;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
General
|
General
|
||||||
- general C#-ification
|
- general C#-ification
|
||||||
|
- get rid of GLib.Object.Data usage
|
||||||
|
|
||||||
DemoMain
|
DemoMain
|
||||||
- syntax highlighting
|
- syntax highlighting
|
||||||
|
@ -13,3 +14,8 @@ DemoStockBrowser
|
||||||
DemoHyperText
|
DemoHyperText
|
||||||
- finish
|
- finish
|
||||||
|
|
||||||
|
Future
|
||||||
|
------
|
||||||
|
IconView
|
||||||
|
RotatedText
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue