Commit Graph

38 Commits

Author SHA1 Message Date
Manuel Quiñones
dd5a68e8ce Add two testcases: tabs with and without buttons, and sensitive text
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
2012-11-01 10:23:49 -03:00
Manuel Quiñones
df1397dcf6 Update toolbar buttons testcase with API change for the icon name
Follow up of fe11a3aa23 .

Signed-off-by: Manuel Quiñones <manuq@laptop.org>
2012-10-10 00:20:31 -03:00
Manuel Quiñones
1f9684c7bf Add testcase for intro window - SL #3904
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
2012-09-20 09:56:02 -03:00
Manuel Quiñones
bb515893ab Add testcase for icon badges - SL #3835
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
2012-09-06 18:15:02 +02:00
Manuel Quiñones
a14574c666 Finish the port of the CellRendererIcon
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
2012-09-03 22:55:35 +02:00
Manuel Quiñones
cb141505fb Add testcase for Gtk buttons
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
2012-08-27 21:24:02 +02:00
Manuel Quiñones
305384be3c Fix the drawing of ColorToolButton, RadioToolButton and ToggleToolButton
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>
2012-08-27 14:13:42 -03:00
Manuel Quiñones
be14c34d35 Use the Sugar Theme in the testsuite
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>
2012-08-24 10:18:10 -03:00
Manuel Quiñones
e2ddd70c13 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
2012-08-23 08:27:45 -03:00
Sascha Silbe
820efa56b9 Run pygi-convert.sh for automatic conversion from GTK2 to GTK3 + pygi.
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>
2011-12-13 17:19:52 -03:00
Simon Schampijer
9cb18cdcf3 Remove Canvas* widgets and other hippo-canvas using parts
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>
2011-12-13 17:19:52 -03:00
Simon Schampijer
8f1a821d68 Rename imports from sugar to sugar3
Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Sascha Silbe <silbe@activitycentral.com>
2011-11-14 19:17:32 +01:00
Sascha Silbe
7acfbd070f style cleanup: prefer ' for strings
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>
2010-11-23 17:14:34 +01:00
Sascha Silbe
e2231d5620 PEP8 cleanup: fix number of blank lines
Caught by pep8.

Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
2010-11-23 17:14:32 +01:00
Sascha Silbe
131c28bb72 fix EOL spaces
Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
2010-11-23 17:14:31 +01:00
Tomeu Vizoso
44cabc891b Remove the hacks for asking the X server for screenshots and use gtk.Widget.get_snapshot() instead. 2008-12-20 16:51:29 +01:00
Benjamin Berg
d37e90940c Fix the testcase for ticket 2855. 2008-01-27 20:07:00 +01:00
Benjamin Berg
ac804177a1 Extend the iconwidget test to also test insensitive icons. 2007-12-14 20:44:22 +01:00
Marco Pesenti Gritti
cd61c52c7b SugarPreview API improvements 2007-11-04 16:40:28 +01:00
Marco Pesenti Gritti
eaef1eb015 Experimental preview implementation using XShmGetImage.
Not hooked up yet.
2007-11-04 16:20:54 +01:00
Marco Pesenti Gritti
b44a2916ba Rework sugar.logger and make activities just
redirect their output to a log.
2007-10-09 18:58:39 +02:00
Marco Pesenti Gritti
3a4f4166f0 Snapshot 47f473189e. 2007-09-12 21:52:04 +02:00
Marco Pesenti Gritti
0f32a1e193 Test for a long hippo scrolling view. 2007-09-07 00:40:26 +02:00
Tomeu Vizoso
070d467e13 Add testcase for exercising the icon cache. 2007-09-03 18:41:35 +02:00
Marco Pesenti Gritti
a09a786ff7 Use Tray also for the frame friends view.
Drop the deprecated IconButton.
2007-09-03 01:48:03 +02:00
Marco Pesenti Gritti
6c1ecad37e Add testcase for toolbar and tray palettes. 2007-09-01 13:33:32 +02:00
Marco Pesenti Gritti
01d368a7a4 Implement VTray. A bit of refactoring to share more code. 2007-08-30 14:29:52 +02:00
Marco Pesenti Gritti
c742cff64d Show arrows only when the icons does not fit. 2007-08-27 22:10:18 +02:00
Marco Pesenti Gritti
7fcc23b4c8 Very first go at the tray widget, based on Eduardo and Simon work. 2007-08-27 21:28:20 +02:00
Marco Pesenti Gritti
ae54542524 Add badge support to IconBuffer 2007-08-26 00:26:11 +02:00
Marco Pesenti Gritti
1938fb13f0 Rework the Icon implementation by splitting out
the icon rendering part. The plan is to share this code
with CanvasIcon once it has all the necessary features.

Also cleanup the API by just reusing gtk.Image icon_name
and file properties.
2007-08-25 18:26:59 +02:00
Tomeu Vizoso
d499fba9b1 Added test for #3000. 2007-08-24 15:24:30 +02:00
Tomeu Vizoso
ee4d70daa6 Added test for #2999. 2007-08-24 15:16:59 +02:00
Marco Pesenti Gritti
6b5703ac96 Revert "Test for ticket 2925, it doesn't reproduce the issue for some reason."
This reverts commit 9f7ed73485.
2007-08-23 19:52:34 +02:00
Marco Pesenti Gritti
9f7ed73485 Test for ticket 2925, it doesn't reproduce the issue for some reason. 2007-08-23 16:05:54 +02:00
Marco Pesenti Gritti
a8d6ab3079 Add test description. 2007-08-20 14:08:28 +02:00
Marco Pesenti Gritti
1b2c9f9f28 Finish up test for 2855. 2007-08-20 13:24:28 +02:00
Marco Pesenti Gritti
a0195e7fd4 Some initial work on graphics tests. 2007-08-20 12:34:29 +02:00