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 171026 - HIG Fixes
HIG Fixes
Status: RESOLVED FIXED
Product: gnome-games-superseded
Classification: Deprecated
Component: general
2.10.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
Depends on:
Blocks:
 
 
Reported: 2005-03-20 19:54 UTC by Dennis Cranston
Modified: 2012-01-31 23:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The proposed blackjack patch. (6.83 KB, patch)
2005-03-20 19:55 UTC, Dennis Cranston
none Details | Review
The proposed libgames-support patch. (19.14 KB, patch)
2005-03-20 19:55 UTC, Dennis Cranston
none Details | Review
Screenshot of Blackjack Preferece Dialog (Before) (31.21 KB, image/png)
2005-03-20 20:02 UTC, Dennis Cranston
  Details
Screenshot of Blackjack Preferece Dialog (After) (30.86 KB, image/png)
2005-03-20 20:02 UTC, Dennis Cranston
  Details
The proposed blackjack patch. (8.10 KB, patch)
2005-03-20 21:27 UTC, Dennis Cranston
none Details | Review
Updated blackjack patch. (8.19 KB, patch)
2005-03-20 23:03 UTC, Dennis Cranston
none Details | Review
Proposed patch. (27.08 KB, patch)
2005-03-21 07:29 UTC, Dennis Cranston
none Details | Review

Description Dennis Cranston 2005-03-20 19:54:08 UTC
Version details: 2.

I am attaching a patch to correct the following HIG issues.

1. Libgames-support HIG changes:
    * Update games-frame.[ch] to latest gimpframes.[ch]
      - This makes the games-frame widget HIG compliant
      See: http://developer.gimp.org/api/2.0/libgimpwidgets/GimpFrame.html

2. BlackJack Preferences dialog changes:
    * Use GNOME HIG recommended dialog padding
      - 12 pixels of padding around dialog border
      - 12 pixels between action area and vbox
      - 18 pixels of padding between frames
    * Add missing mnemonics to Gtk Check Button labels
    * Add missing mnemonic to Gtk Button label
    * Use Header capitalization for Gtk Button label
      See:
http://developer.gnome.org/projects/gup/hig/2.0/design-text-labels.html#layout-capitalization

3. Other BlackJack HIG changes:
    * Add missing mnemonics to menu labels 
    * Capitalize the application name so it is displayed capitalized in the
about dialog
    * Replace ":" with " - " in window title
      See:
http://developer.gnome.org/projects/gup/hig/2.0/windows-primary.html#primary-window-titles
Comment 1 Dennis Cranston 2005-03-20 19:55:07 UTC
Created attachment 38972 [details] [review]
The proposed blackjack patch.
Comment 2 Dennis Cranston 2005-03-20 19:55:46 UTC
Created attachment 38973 [details] [review]
The proposed libgames-support patch.
Comment 3 Dennis Cranston 2005-03-20 20:02:21 UTC
Created attachment 38974 [details]
Screenshot of Blackjack Preferece Dialog (Before)

The 'Games', 'Rules' and 'Card Style' strings are not left aligned.  Notice the
incorrect alignment of the various widgets on the right side of the dialog.
Comment 4 Dennis Cranston 2005-03-20 20:02:56 UTC
Created attachment 38975 [details]
Screenshot of Blackjack Preferece Dialog (After)
Comment 5 Dennis Cranston 2005-03-20 21:27:42 UTC
Created attachment 38981 [details] [review]
The proposed blackjack patch.

This updated patch also fixes the bad resizing behavior of the old preference
dialog.
Comment 6 Callum McKenzie 2005-03-20 22:37:45 UTC
Generally looks good. Two comments:

 - For the gimp-frame code, could you make it use the G_DEFINE_TYPE macro (or one  
   of that family). Obviously this isn't essential, but it makes the code cleaner  
   (unfortunately only a few of the libgames-support widgets use it so far).

 - "Toolbar" should not be changed to "Show Toolbar", most other apps have just 
   "Toolbar" and I would like to be consistent.
Comment 7 Dennis Cranston 2005-03-20 23:03:27 UTC
Created attachment 38985 [details] [review]
Updated blackjack patch.

This patch changes "Show Toolbar" back to "Toolbar".
Comment 8 Dennis Cranston 2005-03-20 23:07:03 UTC
Callum,  I am unfamiliar with the G_DEFINE_TYPE macro, so I don't know what is
required to make it use that macro.
Comment 9 Callum McKenzie 2005-03-20 23:21:41 UTC
Look at:

http://developer.gnome.org/doc/API/2.0/gobject/gobject-Type-Information.html#G-DEFINE-TYPE:CAPS

and games-card-images.c. It replaces a lot of the boiler-plate code with a
single macro. Essentially you can replace the games_frame_get_type function with
it as well as any forward declarations of the class and instance init functions.
Comment 10 Dennis Cranston 2005-03-21 03:40:59 UTC
Currently, gnome-games will not build for me.  I did a fresh checkout from CVS,
but when I build I get hundreds of "error: template with C linkage".
Comment 11 Dennis Cranston 2005-03-21 07:29:35 UTC
Created attachment 38998 [details] [review]
Proposed patch.

Here is one patch for blackjack and libgames-support.	This patch replaces
games_frame_get_type() with a G_DEFINE_TYPE macro.   (I figured out my compile
problem.  Recent gcc 4 changes to gtk+ broke the compile of c++ programs.)
Comment 12 Callum McKenzie 2005-03-23 07:48:58 UTC
I have just applied the patch to my master copy and it should be in CVS later
tonight. Thanks a lot for putting all this effort in (I'm saying this for all
the patches you have filed). It is the little details like these that add the
final polish to a user interface. As the maintainer there always seem to be more
important bugs to chase, and I never get around to these things. You have saved
me a lot of time and effort.

One minor detail, and it is too late for the patches you have already filed, but
could you please add ChangeLog entries describing what you have changed. Various
maintainers have different views on whether they are needed with a patch. I
prefer the submitter to describe the changes in their own words (and I feel it
looks better in terms of giving you credit rather than me saying such-and-such
submitted a patch to do blah). In emacs use C-x 4 a to make an entry.
Comment 13 Dennis Cranston 2005-03-24 00:08:14 UTC
Callum,  Thanks for reviewing my patches.  ChangeLogs will be included in my
next round of proposed fixes.  I do believe I have fixed all the various dialogs
in gnome-games.  What you receive today should be the last flood of patches. 
Comment 14 Callum McKenzie 2005-03-24 02:03:06 UTC
Fortunately patches like these are easy to review. Thanks again for all the hard
work.
Comment 15 Robert Ancell 2012-01-31 23:20:12 UTC
This bug is being reassigned to the "general" component so we can close the blackjack bugzilla component.  Apologies for the mass email!