[gnome-calculator] GCalc: renamed Solver to MathSolver



commit 7793b38ff82a5823efad8c66901eeedf9be7325f
Author: Daniel Espinosa <esodan gmail com>
Date:   Thu Oct 17 12:40:56 2019 -0500

    GCalc: renamed Solver to MathSolver

 gcalc/gcalc-gsolver.vala                            | 2 +-
 gcalc/{gcalc-solver.vala => gcalc-math-solver.vala} | 5 ++++-
 gcalc/meson.build                                   | 2 +-
 3 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gcalc/gcalc-gsolver.vala b/gcalc/gcalc-gsolver.vala
index 8b2cd89f..c365aee5 100644
--- a/gcalc/gcalc-gsolver.vala
+++ b/gcalc/gcalc-gsolver.vala
@@ -20,7 +20,7 @@
  */
 using GCalc;
 
-public class GCalc.GSolver : Object, Solver {
+public class GCalc.GSolver : Object, MathSolver {
   construct {
     equation_manager = new EquationManager ();
   }
diff --git a/gcalc/gcalc-solver.vala b/gcalc/gcalc-math-solver.vala
similarity index 92%
rename from gcalc/gcalc-solver.vala
rename to gcalc/gcalc-math-solver.vala
index 7dff5078..fc921b46 100644
--- a/gcalc/gcalc-solver.vala
+++ b/gcalc/gcalc-math-solver.vala
@@ -18,7 +18,10 @@
  * Authors:
  *      Daniel Espinosa <esodan gmail com>
  */
-public interface GCalc.Solver : Object {
+/**
+ * Math expression solver
+ */
+public interface GCalc.MathSolver : Object {
   public abstract MathEquationManager equation_manager { get; set; }
   public abstract MathResult solve (string str) throws GLib.Error;
 }
diff --git a/gcalc/meson.build b/gcalc/meson.build
index f25adb80..ab627906 100644
--- a/gcalc/meson.build
+++ b/gcalc/meson.build
@@ -104,6 +104,7 @@ gcalc_sources = files([
        'gcalc-math-polynomial.vala',
        'gcalc-math-pow.vala',
        'gcalc-math-result.vala',
+       'gcalc-math-solver.vala',
        'gcalc-minus.vala',
        'gcalc-multiply.vala',
        'gcalc-parameter.vala',
@@ -112,7 +113,6 @@ gcalc_sources = files([
        'gcalc-polynomial.vala',
        'gcalc-pow.vala',
        'gcalc-result.vala',
-       'gcalc-solver.vala',
        'gcalc-term.vala',
        'gcalc-variable.vala',
 ])


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