From 546e8baf1757b86a4c39b56167ae8e75164313b4 Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Fri, 31 Aug 2012 14:19:34 +0000 Subject: Add icons in the examples menu Signed-off-by: Gonzalo Odiard --- diff --git a/icons/addition.svg b/icons/addition.svg new file mode 100644 index 0000000..473c978 --- /dev/null +++ b/icons/addition.svg @@ -0,0 +1,57 @@ + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/icons/letters.svg b/icons/letters.svg new file mode 100644 index 0000000..d9f5a81 --- /dev/null +++ b/icons/letters.svg @@ -0,0 +1,57 @@ + + + + + + + + + image/svg+xml + + + + + + + + + A + + diff --git a/icons/sounds.svg b/icons/sounds.svg new file mode 100644 index 0000000..8b07a45 --- /dev/null +++ b/icons/sounds.svg @@ -0,0 +1,64 @@ + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + diff --git a/memorizetoolbar.py b/memorizetoolbar.py index 916c0d4..dc6bc98 100644 --- a/memorizetoolbar.py +++ b/memorizetoolbar.py @@ -60,7 +60,7 @@ class MemorizeToolbarBuilder(gobject.GObject): self._demo_games.props.tooltip = _('Load demo games') for i, game in enumerate(self.translated_game_names): - menu_item = MenuItem(game) + menu_item = MenuItem(game, icon_name=self.standard_game_names[i]) menu_item.connect('activate', self.__activate_game_cb, i) self._demo_games.props.palette.menu.append(menu_item) menu_item.show() -- cgit v0.9.1