2011-10-29 10:19:34 +02:00
|
|
|
sugardir = $(pythondir)/sugar3/graphics
|
2009-07-29 17:33:02 +02:00
|
|
|
sugar_PYTHON = \
|
|
|
|
alert.py \
|
|
|
|
animator.py \
|
|
|
|
colorbutton.py \
|
|
|
|
combobox.py \
|
|
|
|
iconentry.py \
|
|
|
|
icon.py \
|
2013-01-16 18:36:24 +01:00
|
|
|
progressicon.py \
|
2009-07-29 17:33:02 +02:00
|
|
|
__init__.py \
|
|
|
|
menuitem.py \
|
|
|
|
notebook.py \
|
|
|
|
objectchooser.py \
|
|
|
|
palettegroup.py \
|
|
|
|
palette.py \
|
Set correct padding and size for the palette, window implementation - SL #4144
A new API is provided: PaletteMenuBox is a container to be used in
Palette.set_content(). This is to hide the implementation details and
set the corresponding paddings and sizes.
Usage:
box = PaletteMenuBox()
palette.set_content(box)
Then we can append items to it, like:
item = PaletteMenuItem(text_label, icon, xo_color=xo_color)
box.append_child(item)
separator = PaletteMenuItemSeparator()
box.append_child(item)
We can also append any widget, and the box will handle the paddings:
box.append_child(widget)
style.DEFAULT_PADDING for horizontal and vertical padding is the
default. But can be overriden:
box.append_child(widget, horizontal_padding=0, vertical_padding=0)
Details:
- move palettemenuitem.py to palettemenu.py
- Width of palette: make it a minimun size of 3 Sugar grid cells.
- Padding of content, secondary box: we need top and bottom padding,
which can be set when packing the items container inside the
secondary box.
- Padding of menu items: needs to be just for left and right, so move
the padding to a new horizontal box.
- Padding of separators: unlike GtkSeparatorMenuItem, GtkSeparator
doesn't support padding. But we can wrap it in a GtkEventBox and
force the height of the widget there.
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
2012-11-01 21:45:37 +01:00
|
|
|
palettemenu.py \
|
2009-08-01 16:15:01 +02:00
|
|
|
palettewindow.py \
|
2009-07-29 17:33:02 +02:00
|
|
|
panel.py \
|
|
|
|
radiopalette.py \
|
|
|
|
radiotoolbutton.py \
|
|
|
|
style.py \
|
|
|
|
toggletoolbutton.py \
|
2009-07-30 17:38:16 +02:00
|
|
|
toolbarbox.py \
|
2009-07-29 17:33:02 +02:00
|
|
|
toolbox.py \
|
|
|
|
toolbutton.py \
|
|
|
|
toolcombobox.py \
|
|
|
|
tray.py \
|
|
|
|
window.py \
|
2009-07-29 17:53:09 +02:00
|
|
|
xocolor.py
|