You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Manuel Quiñones f5b96e1fbd CellRendererIcon: add prelight state and render background - SL #3989
This is to provide feedback on mouse over.  The styling needs to be
done in the artwork component.

Because cell renderers don't inherit GtkWidget anymore, the styling
can't be done using the __gtype_name__ .  Instead, it has to be done
adding a css class [1] to the style context, and rendering the background
in the reimplementation of the do_render method.

For reference, see how GtkCellRendererToggle implements render [2] and
how Baobab app does it [3].

[1] http://developer.gnome.org/gtk3/3.2/GtkStyleContext.html#gtk-style-context-add-class
[2] http://git.gnome.org/browse/gtk+/tree/gtk/gtkcellrenderertoggle.c#n338
[3] http://git.gnome.org/browse/baobab/tree/src/baobab-cellrenderers.vala#n125

Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
12 years ago
..
Makefile.am Add new PaletteMenuItem widget for usage in mixed content Palettes 12 years ago
__init__.py Rename the module to sugar3 13 years ago
alert.py Alert: use GtkStyleContext instead of deprecated GtkStyle - SL #3907 12 years ago
animator.py Run pygi-convert.sh for automatic conversion from GTK2 to GTK3 + pygi. 13 years ago
colorbutton.py Fix the drawing of ColorToolButton, RadioToolButton and ToggleToolButton 12 years ago
combobox.py Trivial GTK3 porting fixes 13 years ago
icon.py CellRendererIcon: add prelight state and render background - SL #3989 12 years ago
iconentry.py IconEntry, set_icon_from_name: handle case when icon can not be found cleanly 12 years ago
menuitem.py Replacing set_data/get_data with a python attribute 12 years ago
notebook.py Adapt to Gtk.icon_size_lookup*() API changes 13 years ago
objectchooser.py Object Chooser: update for GDK3 get_xid() 12 years ago
palette.py Palettes: move PRIMARY and SECONDARY constant to the base class 12 years ago
palettegroup.py Reimplement Palettes for GTK3 13 years ago
palettemenuitem.py Add new PaletteMenuItem widget for usage in mixed content Palettes 12 years ago
palettewindow.py CursurInvoker: add long-press gesture to raise Palette 12 years ago
panel.py Trivial GTK3 porting fixes 13 years ago
radiopalette.py Fix radiopalette due to api change in toolbotton 12 years ago
radiotoolbutton.py RadioToolButton, ToolButton, ToggleToolButton: add back the getter for the icon_name property 12 years ago
style.py Run pygi-convert.sh for automatic conversion from GTK2 to GTK3 + pygi. 13 years ago
toggletoolbutton.py RadioToolButton, ToolButton, ToggleToolButton: add back the getter for the icon_name property 12 years ago
toolbarbox.py Set an initial background color for the subtoolbar container - SL #3890 12 years ago
toolbox.py Trivial GTK3 porting fixes 13 years ago
toolbutton.py Add toggle_palette property for Palette invoker, SL #4065 12 years ago
toolcombobox.py Run pygi-convert.sh for automatic conversion from GTK2 to GTK3 + pygi. 13 years ago
tray.py Fix the drawing method of _IconWidget, used by IconTray 12 years ago
window.py Window: show unfullscreen button on button and touch events 12 years ago
xocolor.py Run pygi-convert.sh for automatic conversion from GTK2 to GTK3 + pygi. 13 years ago