Changeset - dd3cd8c7f2ba
[Not reviewed]
default
0 2 0
Jason Maltzen (jmaltzen) - 9 years ago 2015-12-27 11:01:22
jason.maltzen@unsanctioned.net
Fix up toggling of reagents in recipe generator window.
2 files changed with 11 insertions and 7 deletions:
0 comments (0 inline, 0 general)
RecipeGeneratorWindow.cs
Show inline comments
...
 
@@ -156,2 +156,3 @@ namespace DesertPaintLab
 
            reagentEnabledCell.Mode = Gtk.CellRendererMode.Activatable;
 
            reagentEnabledCell.Visible = true;
 
            reagentEnabledCell.Toggled += new Gtk.ToggledHandler(OnReagentEnableToggled);
...
 
@@ -163,2 +164,3 @@ namespace DesertPaintLab
 
            Gtk.CellRendererText reagentNameCell = new Gtk.CellRendererText ();
 
            reagentNameCell.Mode = Gtk.CellRendererMode.Inert;
 
            reagentNameColumn.PackStart (reagentNameCell, true);
...
 
@@ -173,2 +175,3 @@ namespace DesertPaintLab
 
            reagentCostCell.Sensitive = true;
 
            reagentCostCell.Mode = Gtk.CellRendererMode.Editable;
 
            reagentCostColumn.PackStart (reagentCostCell, true);
...
 
@@ -182,2 +185,3 @@ namespace DesertPaintLab
 
            reagentMaxCell.Sensitive = true;
 
            reagentCostCell.Mode = Gtk.CellRendererMode.Editable;
 
            reagentMaxColumn.PackStart (reagentMaxCell, true);
...
 
@@ -198,2 +202,3 @@ namespace DesertPaintLab
 
            reagentListView.Model = reagentListStore;
 
            reagentListView.Sensitive = true;
 

	
...
 
@@ -204,2 +209,4 @@ namespace DesertPaintLab
 
            
 
            reagentListView.
 
            
 
            ShowAll();
...
 
@@ -333,3 +340,3 @@ namespace DesertPaintLab
 
                fullQuantityDepthSpinButton.Sensitive = true;
 
                reagentListView.Sensitive = false;
 
                reagentListView.Sensitive = true;
 
                //generator = null; // don't. Hang on to generator for resume.
...
 
@@ -512,2 +519,3 @@ namespace DesertPaintLab
 
            toggle.Activatable = !reagent.IsCatalyst;
 
            toggle.Mode = reagent.IsCatalyst ? Gtk.CellRendererMode.Inert : Gtk.CellRendererMode.Activatable;
 
        }
...
 
@@ -560,3 +568,2 @@ namespace DesertPaintLab
 
        {
 
            Gtk.CellRendererToggle btn = (Gtk.CellRendererToggle)o;
 
            Gtk.TreeIter iter;
...
 
@@ -565,8 +572,5 @@ namespace DesertPaintLab
 
            Reagent reagent = (Reagent) reagentListStore.GetValue (iter, 0);
 
            if (btn.Active != reagent.Enabled)
 
            {
 
                reagent.Enabled = btn.Active;
 
            reagent.Enabled = !reagent.Enabled;
 
                SaveReagentSettings();
 
            }
 
        }
 

	
gtk-gui/gui.stetic
Show inline comments
...
 
@@ -8,3 +8,3 @@
 
    <widget-library name="glade-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
 
    <widget-library name="../bin/Debug/DesertPaintLab.exe" internal="true" />
 
    <widget-library name="../bin/Release/DesertPaintLab.exe" internal="true" />
 
  </import>
0 comments (0 inline, 0 general)