[gcompris/gcomprixogoo] Removed the shadow in missing letter



commit 8d7014208ea61df601532340c42ce7df48442a7d
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Sun Dec 27 00:39:00 2009 +0100

    Removed the shadow in missing letter

 boards/skins/gartoon/skin.xml               |    4 +---
 src/missing_letter-activity/missingletter.c |   12 ------------
 2 files changed, 1 insertions(+), 15 deletions(-)
---
diff --git a/boards/skins/gartoon/skin.xml b/boards/skins/gartoon/skin.xml
index 831dd25..239996a 100644
--- a/boards/skins/gartoon/skin.xml
+++ b/boards/skins/gartoon/skin.xml
@@ -40,8 +40,7 @@
     <font id="gcompris/board/huge"       name="sans 28"/>
     <font id="gcompris/board/huge bold"  name="sans bold 29"/>
 
-    <color id="menu/text"             rgba="0x597ad7FF"/>
-    <color id="menu/text_shadow"      rgba="0x000000FF"/>
+    <color id="menu/text"             rgba="0x000000FF"/>
     <color id="menu/description_bg_color" rgba="0xe8e7e2CCL"/>
 
     <!-- Here you may define some other properties that will -->
@@ -65,7 +64,6 @@
     <color id="erase/rectangle in3"   rgba="0xf49a9a66"/>
     <color id="erase/rectangle out3"  rgba="0XFFFFFFFF"/>
 
-    <color id="missingletter/shadow"   rgba="0X636363FF"/>
     <color id="missingletter/question" rgba="0XFFFFFFFF"/>
 
     <color id="maze/wall color"       rgba="0x1a1109ff"/>
diff --git a/src/missing_letter-activity/missingletter.c b/src/missing_letter-activity/missingletter.c
index 40d0ea6..8dcc6ac 100644
--- a/src/missing_letter-activity/missingletter.c
+++ b/src/missing_letter-activity/missingletter.c
@@ -65,7 +65,6 @@ static int board_number; // between 0 and board_list.length-1
 static GooCanvasItem *boardRootItem = NULL;
 
 static GooCanvasItem *text    = NULL;
-static GooCanvasItem *text_s  = NULL;
 static GooCanvasItem *selected_button = NULL;
 
 static void missing_letter_create_item(GooCanvasItem *parent);
@@ -309,16 +308,6 @@ missing_letter_create_item(GooCanvasItem *parent)
 
   pixmap = gc_pixmap_load(board->pixmapfile);
 
-  text_s = goo_canvas_text_new (boardRootItem,
-				_(board->question),
-				(double) txt_area_x + 1.0,
-				(double) txt_area_y + 1.0,
-				-1,
-				GTK_ANCHOR_CENTER,
-				"font", gc_skin_font_board_huge_bold,
-				"fill_color_rgba", gc_skin_get_color("missingletter/shadow"),
-				NULL);
-
   text = goo_canvas_text_new (boardRootItem,
 			      _(board->question),
 			      (double) txt_area_x,
@@ -441,7 +430,6 @@ process_ok(gchar *answer)
 {
   if (gamewon) {
     g_object_set(text,   "text", answer, NULL);
-    g_object_set(text_s, "text", answer, NULL);
   }
   // leave time to display the right answer
   gc_bar_hide(TRUE);



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