gcompris r3257 - in branches/gcomprixogoo/src: bargame-activity gcompris
- From: bcoudoin svn gnome org
- To: svn-commits-list gnome org
- Subject: gcompris r3257 - in branches/gcomprixogoo/src: bargame-activity gcompris
- Date: Sat, 16 Feb 2008 18:35:26 +0000 (GMT)
Author: bcoudoin
Date: Sat Feb 16 18:35:26 2008
New Revision: 3257
URL: http://svn.gnome.org/viewvc/gcompris?rev=3257&view=rev
Log:
added one focus in bargame
Modified:
branches/gcomprixogoo/src/bargame-activity/bargame.py
branches/gcomprixogoo/src/gcompris/gameutil.c
Modified: branches/gcomprixogoo/src/bargame-activity/bargame.py
==============================================================================
--- branches/gcomprixogoo/src/bargame-activity/bargame.py (original)
+++ branches/gcomprixogoo/src/bargame-activity/bargame.py Sat Feb 16 18:35:26 2008
@@ -398,6 +398,7 @@
pixbuf = gcompris.utils.load_pixmap("bargame/enumerate_answer.png"),
)
answer_bounds = self.background.get_bounds()
+ gcompris.utils.item_focus_init(self.background, None)
self.itemgroup.translate(gcompris.BOARD_WIDTH - 200,
gcompris.BOARD_HEIGHT - answer_bounds.y2 \
@@ -407,6 +408,7 @@
parent = self.itemgroup,
pixbuf = gcompris.utils.load_pixmap("bargame/enumerate_answer_focus.png"),
)
+ gcompris.utils.item_focus_init(self.background_focused, self.background)
self.background_focused.props.visibility = goocanvas.ITEM_INVISIBLE
self.icone = goocanvas.Image(
@@ -417,6 +419,7 @@
(x, y) = root.get_canvas().convert_from_item_space(self.itemgroup, 10, 20)
(x, y) = root.get_canvas().convert_to_item_space(self.icone, x, y)
self.icone.translate(x, y)
+ gcompris.utils.item_focus_init(self.icone, self.background)
self.value = number_balls[0]
@@ -429,6 +432,7 @@
anchor=gtk.ANCHOR_CENTER,
text = self.value
)
+ gcompris.utils.item_focus_init(self.text, self.background)
self.background.connect("button_press_event",self.answer_event)
self.background_focused.connect("button_press_event",self.answer_event)
Modified: branches/gcomprixogoo/src/gcompris/gameutil.c
==============================================================================
--- branches/gcomprixogoo/src/gcompris/gameutil.c (original)
+++ branches/gcomprixogoo/src/gcompris/gameutil.c Sat Feb 16 18:35:26 2008
@@ -273,8 +273,8 @@
highlight_item);
goo_canvas_item_lower(highlight_item, target_item);
g_object_set (highlight_item,
- "visibility", GOO_CANVAS_ITEM_INVISIBLE,
- NULL);
+ "visibility", GOO_CANVAS_ITEM_INVISIBLE,
+ NULL);
g_signal_connect(source_item, "enter_notify_event",
(GtkSignalFunc) gc_item_focus_event,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]