Merge lp:~bkerensa/ubuntu/raring/gnome-calculator/fix-for-1155590 into lp:ubuntu/raring/gnome-calculator

Proposed by Benjamin Kerensa
Status: Merged
Merge reported by: Jeremy Bícha
Merged at revision: not available
Proposed branch: lp:~bkerensa/ubuntu/raring/gnome-calculator/fix-for-1155590
Merge into: lp:ubuntu/raring/gnome-calculator
Diff against target: 48 lines (+13/-3)
2 files modified
debian/changelog (+7/-0)
src/math-buttons.vala (+6/-3)
To merge this branch: bzr merge lp:~bkerensa/ubuntu/raring/gnome-calculator/fix-for-1155590
Reviewer Review Type Date Requested Status
Jeremy Bícha Needs Fixing
Review via email: mp+157431@code.launchpad.net

Description of the change

Fix duplicate subtraction symbols upon single input

To post a comment you must log in.
Revision history for this message
Jeremy Bícha (jbicha) wrote :

Why aren't you using the full commit from GNOME?

https://git.gnome.org/browse/gnome-calculator/commit/?id=a692c1100

Revision history for this message
Benjamin Kerensa (bkerensa) wrote :

Ahh epic fail... Let me fix this up... Good thing we have peer review eh? (early morning for me)

6. By Benjamin Kerensa

Add other upstream changes for complete fix

Revision history for this message
Benjamin Kerensa (bkerensa) wrote :

This is now fixed

Revision history for this message
Jeremy Bícha (jbicha) wrote :

Could you re-do this using debian/patches/ ?

review: Needs Fixing

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2013-03-27 09:59:36 +0000
+++ debian/changelog 2013-04-05 17:40:23 +0000
@@ -1,3 +1,10 @@
1gnome-calculator (1:3.8.0-0ubuntu2) raring; urgency=low
2
3 [PioneerAxon]
4 * Fix Subtract button inserts additional minus (LP #: 1155590)
5
6 -- Benjamin Kerensa <bkerensa@ubuntu.com> Fri, 05 Apr 2013 09:48:21 -0700
7
1gnome-calculator (1:3.8.0-0ubuntu1) raring; urgency=low8gnome-calculator (1:3.8.0-0ubuntu1) raring; urgency=low
29
3 * New upstream version10 * New upstream version
411
=== modified file 'src/math-buttons.vala'
--- src/math-buttons.vala 2013-02-19 11:14:23 +0000
+++ src/math-buttons.vala 2013-04-05 17:40:23 +0000
@@ -309,7 +309,7 @@
309 /* Tooltip for the add button */309 /* Tooltip for the add button */
310 setup_button (builder, "add", "+", _("Add [+]"));310 setup_button (builder, "add", "+", _("Add [+]"));
311 /* Tooltip for the subtract button */311 /* Tooltip for the subtract button */
312 setup_button (builder, "subtract", "−", _("Subtract [-]"));312 setup_button (builder, "subtract", "−", _("Subtract [-]"), false);
313 /* Tooltip for the multiply button */313 /* Tooltip for the multiply button */
314 setup_button (builder, "multiply", "×", _("Multiply [*]"));314 setup_button (builder, "multiply", "×", _("Multiply [*]"));
315 /* Tooltip for the divide button */315 /* Tooltip for the divide button */
@@ -616,7 +616,7 @@
616 return panel;616 return panel;
617 }617 }
618618
619 private void setup_button (Gtk.Builder builder, string name, string? data, string? tooltip)619 private void setup_button (Gtk.Builder builder, string name, string? data, string? tooltip, bool connect = true)
620 {620 {
621 var widget_name = "calc_%s_button".printf (name);621 var widget_name = "calc_%s_button".printf (name);
622 var button = builder.get_object (widget_name) as Gtk.Button;622 var button = builder.get_object (widget_name) as Gtk.Button;
@@ -626,7 +626,10 @@
626 if (data != null)626 if (data != null)
627 {627 {
628 button.set_data<string> ("calc_text", data);628 button.set_data<string> ("calc_text", data);
629 button.clicked.connect ((widget) => { equation.insert (widget.get_data<string> ("calc_text")); });629 if (connect)
630 {
631 button.clicked.connect ((widget) => { equation.insert (widget.get_data<string> ("calc_text")); });
632 }
630 }633 }
631634
632 if (tooltip != null)635 if (tooltip != null)

Subscribers

People subscribed via source and target branches