diff options
author | Simon Schampijer <simon@schampijer.de> | 2012-06-28 13:50:23 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2012-06-28 13:55:16 (GMT) |
commit | 47e33b91d1cf9eca23504df959a9ad3fb6f7a19a (patch) | |
tree | 593540abfa9031f6e6907610b9d70306119e464a /po/pt.po | |
parent | a4ff9a55ef655d9d7f0caf7267b7c820df93cafe (diff) |
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 EventIcon uses the CursorInvoker that has been introduced in
the GTK+ 3 toolkit 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 is highly based on the work from Walter Bender,
Daniel Drake and Raul Gutierrez Segales.
Signed-off-by: Simon Schampijer <simon@laptop.org>
[1] http://developer.gnome.org/gtk/2.24/GtkEventBox.html
[2] http://developer.gnome.org/gtk/2.24/gtk-Themeable-Stock-Images.html#GtkIconSize
Diffstat (limited to 'po/pt.po')
0 files changed, 0 insertions, 0 deletions