Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorManuel Quiñones <manuq@laptop.org>2012-08-23 03:40:10 (GMT)
committer Manuel Quiñones <manuq@laptop.org>2012-08-23 11:27:45 (GMT)
commite2ddd70c13c43c96d7228de5a3b9d8408a8eefdc (patch)
treef36b50272b4374806e789a8c519b807240f8ba0a /tests
parent09e93736123467633b4166f4243f61adf45af9e1 (diff)
Fix the drawing method of _IconWidget, used by IconTray
Invoker draw_rectangle() now receives a Cairo context, as can be seen in [1] The testcase is also fixed by this commit. Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org> [1] http://git.sugarlabs.org/sugar-toolkit-gtk3/sugar-toolkit-gtk3/blobs/master/src/sugar3/graphics/palettewindow.py#line1018
Diffstat (limited to 'tests')
-rw-r--r--tests/graphics/common.py1
-rw-r--r--tests/graphics/tray.py10
2 files changed, 6 insertions, 5 deletions
diff --git a/tests/graphics/common.py b/tests/graphics/common.py
index e5aabd4..3d20d58 100644
--- a/tests/graphics/common.py
+++ b/tests/graphics/common.py
@@ -16,6 +16,7 @@
# Boston, MA 02111-1307, USA.
from gi.repository import Gtk
+from gi.repository import GObject
from sugar3.graphics.toolbutton import ToolButton
diff --git a/tests/graphics/tray.py b/tests/graphics/tray.py
index fbe78d1..3da60e3 100644
--- a/tests/graphics/tray.py
+++ b/tests/graphics/tray.py
@@ -31,10 +31,10 @@ test = common.Test()
vbox = Gtk.VBox()
tray = HTray()
-vbox.pack_start(tray, False)
+vbox.pack_start(tray, False, False, 0)
tray.show()
-theme_icons = Gtk.IconTheme.get_default().list_icons()
+theme_icons = Gtk.IconTheme.get_default().list_icons(context=None)
for i in range(0, 100):
button = TrayButton(icon_name=theme_icons[i])
@@ -42,7 +42,7 @@ for i in range(0, 100):
button.show()
tray = HTray()
-vbox.pack_start(tray, False)
+vbox.pack_start(tray, False, False, 0)
tray.show()
for i in range(0, 10):
@@ -53,7 +53,7 @@ for i in range(0, 10):
hbox = Gtk.HBox()
tray = VTray()
-hbox.pack_start(tray, False)
+hbox.pack_start(tray, False, False, 0)
tray.show()
for i in range(0, 100):
@@ -62,7 +62,7 @@ for i in range(0, 100):
button.show()
tray = VTray()
-hbox.pack_start(tray, False)
+hbox.pack_start(tray, False, False, 0)
tray.show()
for i in range(0, 4):