~ubuntu-branches/ubuntu/precise/gcompris/precise

« back to all changes in this revision

Viewing changes to src/superbrain-activity/superbrain.c

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-01-10 01:37:41 UTC
  • mto: This revision was merged to the branch mainline in revision 48.
  • Revision ID: package-import@ubuntu.com-20120110013741-q90ulmfrj910igm3
Tags: upstream-12.01
ImportĀ upstreamĀ versionĀ 12.01

Show diffs side-by-side

added added

removed removed

Lines of Context:
203
203
{
204
204
  if (gcomprisBoard)
205
205
    {
206
 
      if(g_strcasecmp(gcomprisBoard->type, "superbrain")==0)
 
206
      if(g_ascii_strcasecmp(gcomprisBoard->type, "superbrain")==0)
207
207
        {
208
208
          /* Set the plugin entry */
209
209
          gcomprisBoard->plugin=&menu_bp;
285
285
                                            NULL);
286
286
  SET_ITEM_LOCATION(item, 270, 50);
287
287
  g_signal_connect(item, "button_press_event",
288
 
                   (GtkSignalFunc) process_ok, NULL);
 
288
                   (GCallback) process_ok, NULL);
289
289
  gc_item_focus_init(item, NULL);
290
290
 
291
291
  /* The list of the pieces */
434
434
          piece->listitem = g_list_append(piece->listitem, item);
435
435
 
436
436
          g_signal_connect(item, "button-press-event",
437
 
                           (GtkSignalFunc) item_event, piece);
 
437
                           (GCallback) item_event, piece);
438
438
        }
439
439
 
440
440
      piece->selecteditem = 0;
619
619
        {
620
620
          GooCanvasItem *item = g_list_nth_data(piece->listitem, j);
621
621
          g_signal_handlers_disconnect_by_func(item,
622
 
                                               (GtkSignalFunc) item_event, piece);
 
622
                                               (GCallback) item_event, piece);
623
623
          gc_item_focus_remove(item, NULL);
624
624
        }
625
625
      g_free(piece);