Commit Graph

50 Commits

Author SHA1 Message Date
Gonzalo Odiard
5626a6c182 Detect scrolling in treviews and optimize drawing
Detecting if the treeview is scrolling we can improve the performance of
the CellRendererIcon by avoiding unneeded calculations.

The example scrollingdetector.py shows how this can be used.  The
changes are backward compatible.

Signed-off-by: Manuel Quiñones <manuel.por.aca@gmail.com>
Signed-off-by: Gonzalo Odiard <godiard@sugarlabs.org>
2015-05-14 12:04:07 -03:00
Daniel Narvaez
01ed63ee4b Fixes for pep8 1.5 2014-03-29 19:25:34 +00:00
William Orr
30acc63d51 pep8'd examples 2013-06-11 15:27:59 +02:00
William Orr
e649070aa2 Replaced deprecated GObject methods with GLib methods 2013-06-10 15:46:53 +02:00
Daniel Narvaez
148655635f Add a make target for tests
We are running the existing test_mime.py. All the other tests which
are not unit tests but more examples of code one can run interactively
are moved to the example directory.
2013-04-09 11:36:51 +02:00
Daniel Narvaez
db448c4eea Remove a lot of unused imports
Signed-off-by: Daniel Narvaez <dwnarvaez@gmail.com>
2013-04-03 22:01:55 +02:00
Simon Schampijer
b9a19e952f Add examples for Alert, Animator, ComboBox, IconEntry and Notebook
Signed-off-by: Simon Schampijer <simon@schampijer.de>
[squashed two patches into one]
Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
2011-12-13 17:19:53 -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
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
Tomeu Vizoso
d1c84b911c Remove symlink that was committed by mistake 2009-09-01 09:26:32 +02:00
Aleksey Lim
353564f12c Fix review issues 2009-07-31 03:49:05 +00:00
Aleksey Lim
3dd0ac8432 Rename ToolbarBox.bar to ToolbarBox.toolbar 2009-07-30 16:25:04 +00:00
Aleksey Lim
7ca9574ca1 Rename ToolbarBox.top to ToolbarBox.bar 2009-07-30 16:20:10 +00:00
Aleksey Lim
61ab4110fa Rename toolbar.py to toolbarbox.py 2009-07-30 15:25:30 +00:00
Aleksey Lim
a2f20f39ff Fix review issues 2009-07-30 11:29:52 +00:00
Aleksey Lim
2655a8ccad Suppress sub-palettes in radiopalette 2009-07-29 16:15:38 +00:00
Aleksey Lim
872b18a103 Fix review issues 2009-07-29 15:33:02 +00:00
Aleksey Lim
165b9e1e05 Provide fast access to all sub-widgets in Toolbar 2009-07-13 03:11:39 +00:00
Aleksey Lim
5d2c5b98ff Do not hide sub-widget when sub-palette was opened 2009-07-13 02:58:49 +00:00
Aleksey Lim
55609885de Add radiopalette.py 2009-07-13 00:32:26 +00:00
Aleksey Lim
e256b96366 Implement palette mode 2009-07-12 01:42:23 +00:00
Aleksey Lim
f9de29f539 Delete sub-widgets clearly 2009-07-11 14:22:05 +00:00
Aleksey Lim
2fc1cab92d Add simple toolbars example 2009-07-10 04:07:10 +00:00
Marco Pesenti Gritti
b8018bb889 Add a test for icons 2006-09-08 14:21:56 +02:00
Marco Pesenti Gritti
621e43563f Get rid of the initial implementation of Diana design since that's no more the plan. 2006-08-14 20:54:33 +02:00
Marco Pesenti Gritti
d2f76cc41d More work on the new home page.
Remove obsolete import.
2006-07-24 15:11:14 +02:00
Marco Pesenti Gritti
e4a87bea06 Implement a stage view 2006-07-24 12:15:52 +02:00
Marco Pesenti Gritti
1e3633baf7 Implement translation 2006-07-24 11:01:25 +02:00
Marco Pesenti Gritti
1c35f8d92c Small improvements 2006-07-22 14:32:04 +02:00
Marco Pesenti Gritti
1e3af85c40 Implement basic animation 2006-07-22 13:48:47 +02:00
Marco Pesenti Gritti
fe69904b6c Add layout manager and a circle layout 2006-07-22 12:28:59 +02:00
Marco Pesenti Gritti
a02313d85a Beginnings of a simple scene API. Inspired opened-hand's Clutter 2006-07-22 11:54:27 +02:00
Marco Pesenti Gritti
5731405901 Promote terminal activity from terminal to activities. Fix api 2006-07-20 09:58:45 +02:00
Marco Pesenti Gritti
46d2f1c532 Get rid of pygtk.require. It doesn't make a lot of sense
and recent apps are not using it anyway.
2006-07-16 17:25:32 +02:00
Marco Pesenti Gritti
326f372f54 Adapt to the new API 2006-07-12 22:45:13 +02:00
Dan Williams
db0aad8333 Fix some missing imports 2006-06-22 22:56:24 -04:00
Dan Williams
6b1c330dbf Fix spacing a few errors 2006-06-22 22:46:09 -04:00
Marco Pesenti Gritti
d57c94970f Quick terminal activity, vte based 2006-06-22 21:51:29 -04:00
Marco Pesenti Gritti
e956f22597 Readd icon 2006-06-21 16:56:11 -04:00
Marco Pesenti Gritti
e1fb6ca1d5 Adapt to the new API 2006-06-21 16:54:13 -04:00
Marco Pesenti Gritti
26684a091c Release 0.11 2006-06-21 16:18:25 -04:00
Marco Pesenti Gritti
c92cf346f9 Move the gmail example to his own directory 2006-06-20 03:43:59 -04:00
Marco Pesenti Gritti
028b15d3df Initial bots code... probably a crack idea but let's see if I can
get something useful out of it.
2006-06-20 03:19:33 -04:00
Dan Williams
e060c07873 Make each activity have a default type for sharing 2006-06-16 23:10:30 -04:00
Dan Williams
046a954de1 Change Activity so that subclasses don't have to call Activity superclass methods from the shell callbacks. Makes subclasses simpler since they don't (necessarily) have to care about OO concepts like superclasses right away. 2006-06-05 12:35:00 -04:00
Dan Williams
996b9c8c44 Fix up gmail activity for Activity object changes. 2006-06-02 15:02:23 -04:00
Marco Pesenti Gritti
b4ebdfa5af Initialize profile 2006-05-23 20:03:35 -04:00
Marco Pesenti Gritti
3f624fdcf7 Add a sample activity. Too bad gmail crashes the 2006-05-18 01:17:40 -04:00