gcompris r3271 - branches/gcomprixogoo/src/gcompris



Author: bcoudoin
Date: Sun Feb 24 22:53:01 2008
New Revision: 3271
URL: http://svn.gnome.org/viewvc/gcompris?rev=3271&view=rev

Log:
disable action on click on the bar when hidden


Modified:
   branches/gcomprixogoo/src/gcompris/bar.c

Modified: branches/gcomprixogoo/src/gcompris/bar.c
==============================================================================
--- branches/gcomprixogoo/src/gcompris/bar.c	(original)
+++ branches/gcomprixogoo/src/gcompris/bar.c	Sun Feb 24 22:53:01 2008
@@ -590,14 +590,12 @@
 {
   GcomprisBoard *gcomprisBoard = gc_board_get_current();
 
+  if(_hidden)
+    return(FALSE);
+
   bar_reset_sound_id();
   gc_sound_play_ogg ("sounds/bleep.wav", NULL);
 
-  /* This is not perfect clean but it makes it easy to remove the help window
-     by clicking on any button in the bar */
-  if(strcmp((char *)data, "help"))
-    gc_help_stop ();
-
   if(!strcmp((char *)data, "ok"))
     {
       if(gcomprisBoard && gcomprisBoard->plugin->ok != NULL)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]