Sugar Learning Environment, Activity Toolkit, GTK 3.
Go to file
Simon Schampijer 6438c89dea EventIcon: update to the latest implementation used in the shell port
The icon consists of an GtkEventBox and an IconBuffer. The
GtkEventBox is a subclass of GtkBin which has its own window and
therefor is used to catch events for our IconBuffer which does
not have it's own window. The window of the EventBox is
made invisible.

The EventIcon does not emit the 'activated' signal when clicked
anymore, you can listen to 'button-release-event' to know
when the icon has been clicked. The EventIcon uses the
CursorInvoker to invoke a palette the same way as the
CanvasIcon did.

We keep the same API as with the CanvasIcon, only the 'size'
property is changed to be called 'pixel_size' in order to
make clearer which values it expects to be passed. We don't
expect a GtkIconSize to be passed here.

Another option would have been to put a SugarIcon inside a
a GtkEventBox and make the properties available through an
icon property but the API would have not been as nice and
logically it seems to make more sense to have the IconBuffer
being the base for both the SugarIcon and the SugarEventIcon.

This patch has ben developed based on the one that is
used in the shell port.

Signed-off-by: Simon Schampijer <simon@laptop.org>
Reviewd-by: Benjamin Berg <benzea@sugarlabs.org>
2012-08-07 11:09:40 +02:00
bin
examples
m4
po Commit from Sugar Labs: Translation System by user cjl.: 4 of 40 messages translated (2 fuzzy). 2012-07-15 06:25:18 +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 Add AUTHORS file 2007-09-25 15:49:52 +02:00
autogen.sh
configure.ac Release 0.96.4 2012-06-06 17:10:18 +02:00
COPYING
MAINTAINERS
Makefile.am
README

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.