After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 157277 - hitting Clr with a parenthesis doesn't work
hitting Clr with a parenthesis doesn't work
Status: RESOLVED FIXED
Product: gnome-calculator
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Rich Burridge
Rich Burridge
Depends on:
Blocks:
 
 
Reported: 2004-11-03 20:30 UTC by Sean Proctor
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sean Proctor 2004-11-03 20:30:45 UTC
go into scientific mode, hit ( then Clr, you'll end up with a character that
says 00 7F, maybe it's different if you have a font that has that character.
anyway, the screen doesn't get cleared.
Comment 1 Rich Burridge 2004-11-04 15:22:10 UTC
Can you give a little more information please? What version of
gcalctool are you using? Help->About from the menubar will give
you the version number. What locale are you running in? I've
just tried this with the latest gcalctool (in both arithmetic
operator precedence mode and non-arithmetic operator precedence
mode), and hitting Clr after entering a "(" clears the line 
correctly.
Comment 2 Sean Proctor 2004-11-04 17:51:33 UTC
I'm running version 4.4.20. I'm assuming C locale. BTW, CE does it as well,
except 00 0B.
Comment 3 Rich Burridge 2004-11-04 18:43:05 UTC
Okay, I've recreated it with 4.4.19. Ugh!
This problem doesn't seem to exist in the 5.5.X gcalctool
series. I'll look at generating a fix for the GNOME 2.8.1
version.
Comment 4 Rich Burridge 2004-11-04 20:44:55 UTC
The bug only happens with mouse input. Simple fix:

Index: gcalctool/functions.c
===================================================================
RCS file: /cvs/gnome/gcalctool/gcalctool/functions.c,v
retrieving revision 1.41
diff -u -r1.41 functions.c
--- gcalctool/functions.c       9 Jun 2004 18:19:48 -0000       1.41
+++ gcalctool/functions.c       4 Nov 2004 20:36:22 -0000
@@ -709,7 +709,7 @@
             return;
         }
     }
-    paren_disp(v->current->func_char);
+    paren_disp(v->current->value[0]);
 }

This isn't a problem if you enter the equivalent via the keyboard.
It's also not a problem in the GNOME 2.9 gcalctool (v5.5.X).

I've bumped the version number in configure.in to 4.4.21,
but I'm not generating a new tarball just yet. I'll do it in time for
the next GNOME 2.8.X release.