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 592777 - sensitivity handling glitch
sensitivity handling glitch
Status: RESOLVED FIXED
Product: gnome-games-superseded
Classification: Deprecated
Component: gnomine
unspecified
Other Linux
: Normal normal
: gnome-2-28
Assigned To: GNOME Games maintainers
GNOME Games maintainers
Depends on:
Blocks:
 
 
Reported: 2009-08-23 06:01 UTC by Matthias Clasen
Modified: 2009-08-24 17:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (496 bytes, patch)
2009-08-23 06:01 UTC, Matthias Clasen
accepted-commit_now Details | Review

Description Matthias Clasen 2009-08-23 06:01:12 UTC
Created attachment 141473 [details] [review]
patch

doing the following:

1) start a game
2) pause
3) start a new game by clicking on the face

causes the pause menuitem to become visible, but remain insensitive.
Comment 1 Christian Persch 2009-08-24 16:07:53 UTC
Comment on attachment 141473 [details] [review]
patch

Looks fine, thanks!
Comment 2 Jason Clinton 2009-08-24 17:08:58 UTC
commit 05c686aadd6f639cbcc0172702a28cb97755d1ca
Author: Matthias Clasen <mclasen@redhat.com>
Date:   Mon Aug 24 12:08:24 2009 -0500

    gnomine: Fix sensitivity handling glitch #592777

diff --git a/gnomine/gnomine.c b/gnomine/gnomine.c
index cb0798f..537d029 100644
--- a/gnomine/gnomine.c
+++ b/gnomine/gnomine.c
@@ -290,7 +290,9 @@ new_game (void)
   set_flabel (GTK_MINEFIELD (mfield));
 
   gtk_action_set_visible (pause_action, TRUE);
+  gtk_action_set_sensitive (pause_action, TRUE);
   gtk_action_set_visible (resume_action, FALSE);
+  gtk_action_set_sensitive (resume_action, FALSE);
   gtk_widget_hide (resume_container);
   gtk_widget_show (mfield_container);
 }