Sugar Learning Environment, Activity Toolkit, GTK 3.
Go to file
Simon Schampijer 61d54cf7e2 EventIcon: Have a default create_palette method
The create_palette mechanism allows to create
palettes on demand and not for each icon upfront
whether it will be needed or not.

If you hover over an EventIcon and there is no
palette already associated with the Invoker, the Invoker
will call create_palette to see if it can be created
on demand. With this patch the EventIcon will return None
here (see as well CellRendererIcon or ToggleToolButton which
are having the same default behavior).
When subclassing EventIcon the create_palette method can
be overwritten and a Palette returned (see for example
the ActivityIcon in the HomeView).

Without this patch you can see tracebacks when hovering
over the EventIcon because the Invoker tries to call
create_palette.

Signed-off-by: Simon Schampijer <simon@laptop.org>
Reviewed-by: Benjamin Berg <benzea@sugarlabs.org>
Acked-by: Manuel Quiñones <manuq@laptop.org>
2012-06-21 14:28:01 +02:00
bin
examples Add examples for Alert, Animator, ComboBox, IconEntry and Notebook 2011-12-13 17:19:53 -03:00
m4
po Commit from Sugar Labs: Translation System by user cjl.: 25 of 40 messages translated (0 fuzzy). 2012-06-21 03:31:10 +02:00
src
tests Run pygi-convert.sh for automatic conversion from GTK2 to GTK3 + pygi. 2011-12-13 17:19:52 -03:00
.gitignore
AUTHORS
autogen.sh
configure.ac
COPYING
MAINTAINERS
Makefile.am sugar-activity: import and make independent of sugar-toolkit GTK versions 2011-12-13 17:35:30 -03:00
README Release 0.79.0 2008-02-06 17:03:51 +01:00

Sugar is the core of the OLPC Human Interface. The toolkit provides
a set of widgets to build HIG compliant applications and interfaces
to interact with system services like presence and the datastore.