Sugar Learning Environment, Activity Toolkit, GTK 3.
1497ebc006
When a CanvasIcon is right-clicked __button_press_event_cb and __palette_popup_cb are called but not __button_release_event_cb. So, ACTIVE flag is set but immediately removed by __palette_popup_cb and PRELIGHT is set. Now, if the user right-click it again while the palette is popped up, __button_press_event_cb is called and it sets ACTIVE flag but __palette_popup_cb is not called again because the palette is already shown and that makes the icon to keep in ACTIVE state. This patch checks if the palette is popped up when __button_press_event_cb is called and if the palette is not popped up the ACTIVE flag is set. Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Manuel Quiñones <manuq@laptop.org> |
||
---|---|---|
bin | ||
examples | ||
m4 | ||
po | ||
src | ||
tests | ||
.gitignore | ||
AUTHORS | ||
autogen.sh | ||
configure.ac | ||
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.