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 104287 - [PATCH] HIG improvements for the "Insert ASCII Value" dialog
[PATCH] HIG improvements for the "Insert ASCII Value" dialog
Status: RESOLVED FIXED
Product: gnome-calculator
Classification: Core
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Rich Burridge
Rich Burridge
: 104242 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-01-24 08:35 UTC by Dennis Cranston
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
The patch file (5.64 KB, patch)
2003-01-24 08:37 UTC, Dennis Cranston
none Details | Review
A quick screenshot. (9.68 KB, image/png)
2003-01-24 08:39 UTC, Dennis Cranston
  Details
New patch with cancel button placed according to Calum's comments. (5.70 KB, patch)
2003-01-24 16:59 UTC, Dennis Cranston
none Details | Review
New screenshot. (9.68 KB, image/png)
2003-01-24 17:00 UTC, Dennis Cranston
  Details
One last patch file. (1.05 KB, patch)
2003-01-25 02:22 UTC, Dennis Cranston
none Details | Review
Adds ESC key handling. (2.22 KB, patch)
2003-01-25 07:29 UTC, Dennis Cranston
none Details | Review

Description Dennis Cranston 2003-01-24 08:35:58 UTC
The "Insert ASCII Value" dialog is not HIG compliant.   The attached patch
makes the following improvements.

1.  Makes the window a true dialog.  This means no minimize, maximize, or
resize buttons in the window's frame.  Also, the window is a transient of
the main window.

2.  Adds a mnemonic character for the text entry.

3.  Replaces "ok" button with an "insert" button.

4.  Fixes up the padding.  As a result, the buttons are all the same size,
and the outer edges of the various widgets in the dialog line up.
Comment 1 Dennis Cranston 2003-01-24 08:37:07 UTC
Created attachment 13793 [details] [review]
The patch file
Comment 2 Dennis Cranston 2003-01-24 08:39:35 UTC
Created attachment 13794 [details]
A quick screenshot.
Comment 3 Rich Burridge 2003-01-24 13:11:06 UTC
This looks great. Thanks Dennis! Calum, if it meets with your
approval, I'll commit it when I get to work later this morning.
Comment 4 Rich Burridge 2003-01-24 13:19:11 UTC
Note that Calum also submitted bug #104242 on this issue,
so I'm just getting clarification from him that your fix
is okay, and I can kill two birds (um, bugs) with one stone
(um, patch).

(Where's the "See Also: field in bugzilla)? Grrr.
Comment 5 Calum Benson 2003-01-24 15:44:55 UTC
Looks good from the screenshot.  I think Cancel should probably be
beside Insert rather than aligned with the opposite edge, though...
especially if we want to give the "Add Function" and related dialogs
the same treatment, which should probably have a Help button where the
Cancel button is in this screenie.
Comment 6 Dennis Cranston 2003-01-24 16:59:03 UTC
Created attachment 13808 [details] [review]
New patch with cancel button placed according to Calum's comments.
Comment 7 Dennis Cranston 2003-01-24 17:00:02 UTC
Created attachment 13809 [details]
New screenshot.
Comment 8 Calum Benson 2003-01-24 17:09:15 UTC
Looks good.  Is Insert the default button in this dialog?  If not I'd
probably do that as well.
Comment 9 Rich Burridge 2003-01-24 17:27:58 UTC
*** Bug 104242 has been marked as a duplicate of this bug. ***
Comment 10 Rich Burridge 2003-01-24 17:39:14 UTC
Patch applied (modulo my anal coding style - no tabs,
80 character line limit, always use braces even on a
one line if statement). Fixed in v4.2.38 of gcalctool.
Thanks again Dennis!
Comment 11 Dennis Cranston 2003-01-25 02:22:05 UTC
The insert button was not set as the default.  This should be fixed,
so I am reopening the bug report. 

I will attach one more patch.  The patch fixes two remaining bugs:

1.  The insert button should be the default.
2.  The dialog should not be resizable.
Comment 12 Dennis Cranston 2003-01-25 02:22:56 UTC
Created attachment 13816 [details] [review]
One last patch file.
Comment 13 Dennis Cranston 2003-01-25 07:28:35 UTC
I should have never called that last patch the "last" one.  Anyhow, I
realized there needs to be one more fix.  This patch includes the same
fixes as the previous plus it hooks up the ESC key for canceling the
dialog.    Thanks.
Comment 14 Dennis Cranston 2003-01-25 07:29:21 UTC
Created attachment 13818 [details] [review]
Adds ESC key handling.
Comment 15 Rich Burridge 2003-01-25 16:40:07 UTC
Thanks for the further work on this. I've just checked
in your changes, so hopefully everything is fixed up now.
Fixed in v4.2.39.