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 489105 - Shortcuts don't work if you start out in Advanced or Scientific mode
Shortcuts don't work if you start out in Advanced or Scientific mode
Status: RESOLVED FIXED
Product: gnome-calculator
Classification: Core
Component: general
5.21.x
Other Linux
: Normal normal
: ---
Assigned To: Robert Ancell
Rich Burridge
: 489109 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-10-22 17:51 UTC by Joanmarie Diggs (IRC: joanie)
Modified: 2007-11-02 14:22 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20



Description Joanmarie Diggs (IRC: joanie) 2007-10-22 17:51:42 UTC
(from my comment in bug 488783)

Steps to reproduce:

1. Launch gcalctool, switch to Advanced or Scientific mode, then quit
   gcalctool.
2. Re-launch gcalctool.
3. Press  any of the shortcuts for the keys in the mode you chose,
   like i for Int or @ for ^2.

Expected results:  The shortcuts would work.

Actual results:  The shortcuts don't work until you go back and re-choose your
mode from the View menu.

Other observation:  Pressing C for +/- in step 3 does work as expected.  This
is also a shortcut available in the Basic mode.  So maybe the bug is really
that gcalctool doesn't realize that it's not in Basic mode when you first
launch it??
Comment 1 Rich Burridge 2007-10-22 18:07:49 UTC
Thanks Joanie.
Comment 2 Rich Burridge 2007-10-22 23:22:08 UTC
Robert, this appears to be a Glade'd conversion bug. Could you take a
look at it please?

The problem appears to be in kframe_key_press_cb() in gtk.c.
As the code is very different than what it used to be, I think
I'll let you take first stab at this.

Thanks.
Comment 3 Rich Burridge 2007-10-22 23:26:39 UTC
*** Bug 489109 has been marked as a duplicate of this bug. ***
Comment 4 Robert Ancell 2007-10-24 03:50:13 UTC
I'm working on a patch that moves the shortcut keys to accelerators in the glade file (I was trying to do this in the first glade patch but it ended up quite complicated). This will take a while but should fix this problem.
Comment 5 Rich Burridge 2007-10-24 06:12:51 UTC
Cool. That sounds good. I think we are in pretty good shape
even now for the gcalctool tarball for GNOME 2.21.1 in about
5-6 days time, so this fix isn't critical for that release.

Thanks.
Comment 6 Joanmarie Diggs (IRC: joanie) 2007-10-27 20:41:54 UTC
The latest patch to bug #485919 does seem to fix this problem.
Comment 7 Rich Burridge 2007-10-27 21:18:41 UTC
> The latest patch to bug #485919 does seem to fix this problem.

Good to know. I won't close this one out until that patch has "matured"
and has been committed.

Thanks!
Comment 8 Rich Burridge 2007-11-02 14:22:16 UTC
Looks like the latest patch(es) have matured and been committed.
Closing as FIXED. Thanks!