gcompris r3775 - in trunk: . src/boards
- From: bcoudoin svn gnome org
- To: svn-commits-list gnome org
- Subject: gcompris r3775 - in trunk: . src/boards
- Date: Sun, 15 Mar 2009 21:57:05 +0000 (UTC)
Author: bcoudoin
Date: Sun Mar 15 21:57:04 2009
New Revision: 3775
URL: http://svn.gnome.org/viewvc/gcompris?rev=3775&view=rev
Log:
- Replaced letter that differenciate blocks for
color blinds by ASCII symbols that are locale
agnostic.
Modified:
trunk/ChangeLog
trunk/src/boards/hanoi.c
Modified: trunk/src/boards/hanoi.c
==============================================================================
--- trunk/src/boards/hanoi.c (original)
+++ trunk/src/boards/hanoi.c Sun Mar 15 21:57:04 2009
@@ -68,7 +68,7 @@
static guint colorlist [] =
{
- 0x00FFFFFF,
+ 0x00C0C0C0,
0xA00000FF,
0xF00000FF,
0x00A000FF,
@@ -77,7 +77,7 @@
0x0000FFFF,
0x505000FF,
0xA0A000FF,
- 0xF0F000FF,
+ 0xC0C080FF,
0x005050FF,
0x00A0A0FF,
0x500050FF,
@@ -86,6 +86,24 @@
};
#define NUMBER_OF_COLOR G_N_ELEMENTS(colorlist)
+static char symbollist [NUMBER_OF_COLOR] =
+ {
+ '!',
+ '/',
+ '<',
+ '>',
+ '&',
+ '~',
+ '#',
+ '{',
+ '%',
+ '|',
+ '?',
+ '}',
+ '=',
+ '+',
+ '*'
+ };
/* Description of this plugin */
static BoardPlugin menu_bp =
@@ -529,16 +547,16 @@
"width_units", (double)1,
NULL);
- car[0] = 'a' + position[i][j]->color;
+ car[0] = symbollist[position[i][j]->color];
car[1] = '\0';
position[i][j]->item_text = \
gnome_canvas_item_new (boardRootItem,
gnome_canvas_text_get_type (),
"text", &car,
- "font", gc_skin_font_board_tiny,
+ "font", "sans bold 14",
"x", (double) position[i][j]->xt,
- "y", (double) position[i][j]->yt,
+ "y", (double) position[i][j]->yt - 3,
"anchor", GTK_ANCHOR_NORTH,
"fill_color", "white",
"justification", GTK_JUSTIFY_CENTER,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]