[gnome-calculator] Remove redundant calls to notify_property()
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator] Remove redundant calls to notify_property()
- Date: Thu, 29 May 2014 14:17:31 +0000 (UTC)
commit fe919329c477674814230f2f2d944e6998676531
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Thu May 29 09:15:46 2014 -0500
Remove redundant calls to notify_property()
Vala takes care of this for us -- by doing it manually, we cause this to
be called twice in a row.
src/math-buttons.vala | 1 -
src/math-equation.vala | 9 ---------
2 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/src/math-buttons.vala b/src/math-buttons.vala
index e0d5bf9..eae87db 100644
--- a/src/math-buttons.vala
+++ b/src/math-buttons.vala
@@ -687,7 +687,6 @@ public class MathButtons : Gtk.Box
return;
_programming_base = value;
- notify_property ("programming-base");
if (mode == ButtonMode.PROGRAMMING)
equation.number_base = value;
diff --git a/src/math-equation.vala b/src/math-equation.vala
index 2afe358..2695716 100644
--- a/src/math-equation.vala
+++ b/src/math-equation.vala
@@ -57,7 +57,6 @@ public class MathEquation : Gtk.SourceBuffer
if (_word_size == value)
return;
_word_size = value;
- notify_property ("word-size");
}
}
@@ -523,7 +522,6 @@ public class MathEquation : Gtk.SourceBuffer
return;
serializer.set_trailing_digits (value);
reformat_display ();
- notify_property ("accuracy");
}
}
@@ -537,7 +535,6 @@ public class MathEquation : Gtk.SourceBuffer
serializer.set_show_thousands_separators (value);
reformat_display ();
- notify_property ("show-thousands-separators");
}
}
@@ -551,7 +548,6 @@ public class MathEquation : Gtk.SourceBuffer
serializer.set_show_trailing_zeroes (value);
reformat_display ();
- notify_property ("show-trailing-zeroes");
}
}
@@ -565,7 +561,6 @@ public class MathEquation : Gtk.SourceBuffer
serializer.set_number_format (value);
reformat_display ();
- notify_property ("number-format");
}
}
@@ -580,7 +575,6 @@ public class MathEquation : Gtk.SourceBuffer
serializer.set_base (value);
serializer.set_representation_base (value);
reformat_display ();
- notify_property ("number-base");
}
}
@@ -593,7 +587,6 @@ public class MathEquation : Gtk.SourceBuffer
return;
_angle_units = value;
- notify_property ("angle-units");
}
}
@@ -606,7 +599,6 @@ public class MathEquation : Gtk.SourceBuffer
return;
state.status = value;
- notify_property ("status");
}
}
@@ -713,7 +705,6 @@ public class MathEquation : Gtk.SourceBuffer
can_super_minus = value == NumberMode.SUPERSCRIPT;
_number_mode = value;
- notify_property ("number-mode");
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]