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

« back to all changes in this revision

Viewing changes to src/hanoi_real-activity/hanoi_real.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:
171
171
{
172
172
  if (gcomprisBoard)
173
173
    {
174
 
      if(g_strcasecmp(gcomprisBoard->type, "hanoi_real")==0)
 
174
      if(g_ascii_strcasecmp(gcomprisBoard->type, "hanoi_real")==0)
175
175
        {
176
176
          /* Set the plugin entry */
177
177
          gcomprisBoard->plugin=&menu_bp;
339
339
                                   baseline - gdk_pixbuf_get_height(pixmap) + item_height,
340
340
                                   NULL);
341
341
 
 
342
#if GDK_PIXBUF_MAJOR <= 2 && GDK_PIXBUF_MINOR <= 24
342
343
      gdk_pixbuf_unref(pixmap);
 
344
#else
 
345
      g_object_unref(pixmap);
 
346
#endif
343
347
 
344
348
 
345
349
      for(j=0; j<number_of_item_y; j++)
357
361
                                           pixmap,
358
362
                                           0, 0,
359
363
                                           NULL);
 
364
#if GDK_PIXBUF_MAJOR <= 2 && GDK_PIXBUF_MINOR <= 24
360
365
              gdk_pixbuf_unref(pixmap);
 
366
#else
 
367
              g_object_unref(pixmap);
 
368
#endif
361
369
              goo_canvas_item_translate(item,
362
370
                                        position[i][j]->x - w/2,
363
371
                                        position[i][j]->y);
367
375
 
368
376
              g_signal_connect(item,
369
377
                               "button_press_event",
370
 
                               (GtkSignalFunc) gc_drag_event,  position[i][j]);
 
378
                               (GCallback) gc_drag_event,  position[i][j]);
371
379
              g_signal_connect(item,
372
380
                               "button_release_event",
373
 
                               (GtkSignalFunc) gc_drag_event,  position[i][j]);
 
381
                               (GCallback) gc_drag_event,  position[i][j]);
374
382
            }
375
383
        }
376
384
    }