Merge lp:~lexsurkov/pantheon-calculator/Bug_1409485 into lp:~elementary-apps/pantheon-calculator/trunk

Proposed by lexsurkov
Status: Merged
Approved by: xapantu
Approved revision: 160
Merged at revision: 174
Proposed branch: lp:~lexsurkov/pantheon-calculator/Bug_1409485
Merge into: lp:~elementary-apps/pantheon-calculator/trunk
Diff against target: 32 lines (+15/-2)
1 file modified
src/MainWindow.vala (+15/-2)
To merge this branch: bzr merge lp:~lexsurkov/pantheon-calculator/Bug_1409485
Reviewer Review Type Date Requested Status
kay van der Zander (community) Approve
xapantu Pending
Review via email: mp+272450@code.launchpad.net

This proposal supersedes a proposal from 2015-09-19.

Commit message

Fixed inconsistent GUI and keyboard input

Description of the change

Fixed inconsistent GUI and keyboard input

To post a comment you must log in.
Revision history for this message
xapantu (xapantu) wrote : Posted in a previous version of this proposal

It looks like you forgot to commit your changes, this branch is the same as the trunk.

review: Needs Information
Revision history for this message
xapantu (xapantu) wrote : Posted in a previous version of this proposal

Hum, listening to the event signal directly is not needed. Maybe you can just move your code to the key_pressed method?

review: Needs Fixing
Revision history for this message
lexsurkov (lexsurkov) wrote : Posted in a previous version of this proposal

Thank you, hastened to, not tested in the method key_pressed. In the future, I will carefully)))
Now I corrected.
.

> 15.09.2015, 2:18:25 пользователь xapantu (<email address hidden>) написал:
>
> Review: Needs Fixing
>
> Hum, listening to the event signal directly is not needed. Maybe you can just move your code to the key_pressed method?
> --
> https://code.launchpad.net/~lexsurkov/pantheon-calculator/Bug_1409485/+merge/269764
> You are the owner of lp:~lexsurkov/pantheon-calculator/Bug_1409485.
>
>

Revision history for this message
kay van der Zander (kay20) wrote : Posted in a previous version of this proposal

the targeted bug is still not fixed in this branch.

http://imgur.com/H84xfbB you see there is still possible to get the wrong representation of multiply and devide.

http://imgur.com/YHRZjaw the red keys give the wrong representation the green keys work.

review: Needs Fixing
Revision history for this message
lexsurkov (lexsurkov) wrote : Posted in a previous version of this proposal

Invalid the commit wrote. Added support 'RED' the keys.

Revision history for this message
kay van der Zander (kay20) wrote : Posted in a previous version of this proposal

what you could do before i test it again. is to keep your commit to one revision.
use uncommit command to change a commit. by unmerged versions here below there should be only one unmerged commit revision 160.

Revision history for this message
lexsurkov (lexsurkov) wrote : Posted in a previous version of this proposal

The first time I use with SVN. Now the code is correct but the changes do not appear. Maybe lift up a new branch?

Revision history for this message
Rico Tzschichholz (ricotz) wrote : Posted in a previous version of this proposal

@lexsurkov: Simply using the "Resubmit proposal" option should get this straight again.

But please use a *sane* commit message which is actually describes what you did, instead of this abstract "Fixed bug XXXX".

Revision history for this message
lexsurkov (lexsurkov) wrote : Posted in a previous version of this proposal

Thank you all, I got a great experience. I will continue to work on themselves and on ElementaryOS

Revision history for this message
kay van der Zander (kay20) wrote : Posted in a previous version of this proposal

He i have test all keyboards shortcuts for any math related symbols.
I have found one more and that is the symbol '-' see image http://imgur.com/JjOK18H
watch it there are 2 '-' symbols on a international us keyboard.

after this i will approve

review: Needs Fixing
Revision history for this message
kay van der Zander (kay20) wrote :

Hey lexsurkov,

sorry for taking so long. i have spoken to the UX team.
They want to have the hyphen symbol which could be addressed by Gdk.key.hyphen.
the U+2212 minus sign is the hyphen symbol.
saidly enough the font we use hasn't support for it see http://www.fileformat.info/info/unicode/char/2212/fontsupport.htm

when using Gdk.key.hyphen it doesn't show anything because of the font support. that is why i approve this implementation of the hyphen symbol. It is the only implementation where the UX requirement is met.
the UX people want to have the minus symbol on the same hight of the plus symbol.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/MainWindow.vala'
2--- src/MainWindow.vala 2015-07-29 21:49:18 +0000
3+++ src/MainWindow.vala 2015-09-25 17:20:27 +0000
4@@ -410,13 +410,26 @@
5 }
6
7 private bool key_pressed (Gdk.EventKey key) {
8+ bool retval = false;
9 switch (key.keyval) {
10 case Gdk.Key.Escape:
11 button_del_clicked ();
12 break;
13+ case Gdk.Key.KP_Divide:
14+ case Gdk.Key.slash:
15+ key.keyval = Gdk.Key.division;
16+ break;
17+ case Gdk.Key.KP_Multiply:
18+ case Gdk.Key.asterisk:
19+ key.keyval = Gdk.Key.multiply;
20+ break;
21+ case Gdk.Key.KP_Subtract:
22+ case Gdk.Key.minus:
23+ regular_button_clicked ("−");
24+ retval = true;
25+ break;
26 }
27-
28- return false;
29+ return retval;
30 }
31 }
32 }

Subscribers

People subscribed via source and target branches

to all changes: