[gnome-calculator/ricotz/vala] Avoid vala semantic issue with type-argmunents




commit c87e5852a4d42d0563b68ff69b08a7514ccf43f1
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Aug 1 18:28:19 2022 +0200

    Avoid vala semantic issue with type-argmunents

 src/math-buttons.vala          | 2 +-
 src/math-variable-popover.vala | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/math-buttons.vala b/src/math-buttons.vala
index 90d83857..9dd8f442 100644
--- a/src/math-buttons.vala
+++ b/src/math-buttons.vala
@@ -434,7 +434,7 @@ public class MathButtons : Gtk.Box
         if (menu_button != null)
         {
             var model = new ListStore(typeof(MathVariable));
-            MathVariablePopover math_popover = new MathVariablePopover (equation, model, (a,b) => 
MathVariable.name_compare_func(a as MathVariable, b as MathVariable));
+            MathVariablePopover math_popover = new MathVariablePopover (equation, model);
             fill_variables_model (model, math_popover, equation);
             menu_button.popover = math_popover;
         }
diff --git a/src/math-variable-popover.vala b/src/math-variable-popover.vala
index d16eca32..0fb63515 100644
--- a/src/math-variable-popover.vala
+++ b/src/math-variable-popover.vala
@@ -42,7 +42,7 @@ public class MathVariablePopover : MathPopover<MathVariable>
     [GtkChild]
     private unowned Gtk.Button store_variable_button;
 
-    public MathVariablePopover (MathEquation equation, ListStore model, CompareDataFunc compare_func)
+    public MathVariablePopover (MathEquation equation, ListStore model)
     {
         base(equation, model, (a,b) => MathVariable.name_compare_func(a as MathVariable,b as MathVariable));
 


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