Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add testcase for icon badges - SL #3835Manuel Quiñones2012-09-061-0/+28
| | | | | Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Finish the port of the CellRendererIconManuel Quiñones2012-09-032-0/+81
| | | | | | | | | | | | | | | | | | In pygtk custom cellrenderers were done inheriting gtk.GenericCellRenderer, and overriding the on_* methods. Now we inherit Gtk.CellRenderer and the methods to override changed to do_* . The destroy signal was moved to Gtk.Widget [1] so the Gtk.CellRenderer doesn't have it anymore. Now we do the cleanup in the python destructor method. A testcase tests/graphics/customdestroy.py shows how is done. tests/graphics/cellrenderericon.py tests the usage. Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org> [1] http://developer.gnome.org/gtk3/stable/ch24s02.html#id1459754
* Add testcase for Gtk buttonsManuel Quiñones2012-08-271-0/+57
| | | | | Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Fix the drawing of ColorToolButton, RadioToolButton and ToggleToolButtonManuel Quiñones2012-08-271-0/+45
| | | | | | | | | | | | Draw a black background in the buttons when the palette is up, as commit 01a06943 did with the ToolButton. As the comment for that commit states, we can change the prelight background color in the theme, but not when the mouse moves over the Palette. Also add testcase to test the three toolbuttons. Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Use the Sugar Theme in the testsuiteManuel Quiñones2012-08-241-0/+13
| | | | | | | | To make useful tests for the Sugar widgets, the theme must be the same. Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Fix the drawing method of _IconWidget, used by IconTrayManuel Quiñones2012-08-232-5/+6
| | | | | | | | | | | 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
* Run pygi-convert.sh for automatic conversion from GTK2 to GTK3 + pygi.Sascha Silbe2011-12-138-54/+54
| | | | | | | | | | | | | | | | | This is only on a best-effort basis; the code will be in a broken state after this patch and need to be fixed manually. The purpose of committing the intermediate, non-working output is to make it reproducible. It's impractical to manually review the changes. The exact version used was 4f637212f13b197a95c824967a58496b9e3b877c from the main pygobject repository [1] plus a custom patch [2] that hasn't been sent upstream yet. [1] git://git.gnome.org/pygobject [2] https://sascha.silbe.org/patches/pygobject-convert-sugar-20111122.patch Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
* Remove Canvas* widgets and other hippo-canvas using partsSimon Schampijer2011-12-131-51/+0
| | | | | | | | | | hippo-canvas isn't available in the GTK3 world, so we need to remove anything that depends on it. Activities that still use it will need replace hippo-canvas based widgets with native GTK ones before they can be ported to GTK3. [replaced description] Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
* Rename imports from sugar to sugar3Simon Schampijer2011-11-149-19/+19
| | | | | Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Sascha Silbe <silbe@activitycentral.com>
* style cleanup: prefer ' for stringsSascha Silbe2010-11-2310-11/+11
| | | | | | | | | Tomeu prefers ' for strings, so let's use it wherever we don't have a good reason to use ". Reviewed-by: James Cameron <quozl@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org> CC: Aleksey Lim <alsroot@member.fsf.org>
* PEP8 cleanup: ensure lines are shorter than 80 charactersSascha Silbe2010-11-231-4/+6
| | | | | | | | | | Caught by PEP8. This is important for Sugar because the XO has a small screen where long lines would make the code hard to understand (because you need to constantly scroll horizontally). Reviewed-by: James Cameron <quozl@laptop.org> Acked-by: Simon Schampijer<simon@schampijer.de> CC: Aleksey Lim <alsroot@member.fsf.org>
* PEP8 cleanup: fix number of blank linesSascha Silbe2010-11-234-1/+8
| | | | | | | | Caught by pep8. Reviewed-by: James Cameron <quozl@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org> CC: Aleksey Lim <alsroot@member.fsf.org>
* fix EOL spacesSascha Silbe2010-11-232-2/+2
| | | | | | Reviewed-by: James Cameron <quozl@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org> CC: Aleksey Lim <alsroot@member.fsf.org>
*