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.
Simon Schampijer 6064fb30cc Add support for locking Palettes, SL #4008
This adds a property that indicates that a Palette should
behave in a locking manner. The behaviour is the same
as with the secondary Toolbars: when you hover over the invoking
widget the Palette will popdown and react to mouse movements,
leaving the invoker area or the Palette itself will popdown
the Palette again. When you click the invoking widget
the Palette will be locked. You have to unlock it again
to pop it down.

This patch makes the DescriptionButton and the Colorbutton
work.

If the DescriptionButton or the Colorbutton are placed in
the primary toolbar they will share the locked state with
the secondary toolbars. Only one can be locked at a time.

When a secondary toolbar is unlocked we do force that the
open Palettes are closed. Having a locking Palette in
a subtoolbar will also work (Activity Toolbar case or
ColorButton case in a few examples). There is no state
sharing implemented here at the moment, but so far we
do only have cases with one lockable Palette in a
subtoolbar.

This will also fix the case where we want to use the
OSK to edit the description of the activity SL #3887.

Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Manuel Quiñones <manuq@laptop.org>
12 years ago
..
Makefile.am Set correct padding and size for the palette, window implementation - SL #4144 12 years ago
__init__.py
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 Add support for locking Palettes, SL #4008 12 years ago
combobox.py Trivial GTK3 porting fixes 13 years ago
icon.py CellRendererIcon: add active state - 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 Set correct padding and size for the palette, window implementation - SL #4144 12 years ago
palettegroup.py Reimplement Palettes for GTK3 13 years ago
palettemenu.py Set correct padding and size for the palette, window implementation - SL #4144 12 years ago
palettewindow.py Add support for locking Palettes, SL #4008 12 years ago
panel.py Trivial GTK3 porting fixes 13 years ago
radiopalette.py DescriptionButton, ShareButton: set the toggle_palette option to True 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 Add support for locking Palettes, SL #4008 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 TrayIcon: set the touch mask on the event box, part of SL #4127 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