[gcalctool/vala] Fix new property
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcalctool/vala] Fix new property
- Date: Fri, 12 Oct 2012 21:08:35 +0000 (UTC)
commit f0e5e2cbd2df32b219e4fdbf7915949fa14e34fd
Author: Robert Ancell <robert ancell canonical com>
Date: Sat Oct 13 10:08:07 2012 +1300
Fix new property
src/gcalctool.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gcalctool.vala b/src/gcalctool.vala
index 0564944..65f66f5 100644
--- a/src/gcalctool.vala
+++ b/src/gcalctool.vala
@@ -67,7 +67,7 @@ public class GCalctool : Gtk.Application
window = new MathWindow (this, equation);
var buttons = window.buttons;
- buttons.set_programming_base (number_base);
+ buttons.programming_base = number_base;
buttons.mode = button_mode; // FIXME: We load the basic buttons even if we immediately switch to the next type
buttons.notify["mode"].connect ((pspec) => { mode_cb (); });
mode_cb ();
@@ -126,7 +126,7 @@ public class GCalctool : Gtk.Application
settings.set_string ("target-currency", equation.target_currency);
settings.set_string ("source-units", equation.source_units);
settings.set_string ("target-units", equation.target_units);
- settings.set_int ("base", buttons.get_programming_base ());
+ settings.set_int ("base", buttons.programming_base);
}
private static void solve (string equation)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]