[gnome-calculator] GCalc: renamed GGroup to Group
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator] GCalc: renamed GGroup to Group
- Date: Thu, 17 Oct 2019 19:08:27 +0000 (UTC)
commit a444f7a0763763109fa5fd24a0a6630403748c54
Author: Daniel Espinosa <esodan gmail com>
Date: Thu Oct 17 11:56:15 2019 -0500
GCalc: renamed GGroup to Group
gcalc/{gcalc-ggroup.vala => gcalc-group.vala} | 2 +-
gcalc/gcalc-parser.vala | 4 ++--
gcalc/meson.build | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gcalc/gcalc-ggroup.vala b/gcalc/gcalc-group.vala
similarity index 96%
rename from gcalc/gcalc-ggroup.vala
rename to gcalc/gcalc-group.vala
index 5684a13c..5ad24422 100644
--- a/gcalc/gcalc-ggroup.vala
+++ b/gcalc/gcalc-group.vala
@@ -18,7 +18,7 @@
* Authors:
* Daniel Espinosa <esodan gmail com>
*/
-public class GCalc.GGroup : Expression, MathGroup {
+public class GCalc.Group : Expression, MathGroup {
internal MathGroup.Level level { get; set; }
internal bool closed { get; set; }
internal override string to_string () {
diff --git a/gcalc/gcalc-parser.vala b/gcalc/gcalc-parser.vala
index 1c67dd36..7c425276 100644
--- a/gcalc/gcalc-parser.vala
+++ b/gcalc/gcalc-parser.vala
@@ -227,7 +227,7 @@ public class GCalc.Parser : Object {
eq.expressions.add (exp);
var t = new GTerm ();
exp.expressions.add (t);
- var g = new GGroup ();
+ var g = new Group ();
t.expressions.add (g);
var exp2 = new Polynomial ();
var t2 = new GTerm ();
@@ -246,7 +246,7 @@ public class GCalc.Parser : Object {
current_parent = fexp;
expected.clear ();
} else if (current is MathOperator && current_parent is Term && top_parent is MathPolynomial) {
- var g = new GGroup ();
+ var g = new Group ();
current_parent.expressions.add (g);
var exp = new Polynomial ();
g.expressions.add (exp);
diff --git a/gcalc/meson.build b/gcalc/meson.build
index c07a3ec4..e826c6b4 100644
--- a/gcalc/meson.build
+++ b/gcalc/meson.build
@@ -79,6 +79,7 @@ gcalc_sources = files([
'gcalc-function-sqrt.vala',
'gcalc-function-tan.vala',
'gcalc-function-tanh.vala',
+ 'gcalc-group.vala',
'gcalc-gmath-equation.vala',
'gcalc-gmath-equation-manager.vala',
'gcalc-gminus.vala',
@@ -87,7 +88,6 @@ gcalc_sources = files([
'gcalc-gplus.vala',
'gcalc-gpow.vala',
'gcalc-gresult.vala',
- 'gcalc-ggroup.vala',
'gcalc-gsolver.vala',
'gcalc-gterm.vala',
'gcalc-gvariable.vala',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]