Add a filechooser subclass which sizes correctly on the OLPC.
This is temporary, gtk needs to be fixed.
This commit is contained in:
parent
4fbfd1625c
commit
fbeaf5fb66
@ -9,6 +9,7 @@ sugar_PYTHON = \
|
|||||||
color.py \
|
color.py \
|
||||||
ClipboardBubble.py \
|
ClipboardBubble.py \
|
||||||
entry.py \
|
entry.py \
|
||||||
|
filechooser.py \
|
||||||
font.py \
|
font.py \
|
||||||
frame.py \
|
frame.py \
|
||||||
label.py \
|
label.py \
|
||||||
|
10
sugar/graphics/filechooser.py
Normal file
10
sugar/graphics/filechooser.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import gtk
|
||||||
|
|
||||||
|
from sugar.graphics import units
|
||||||
|
|
||||||
|
class FileChooserDialog(gtk.FileChooserDialog):
|
||||||
|
def __init__(self, title=None, parent=None,
|
||||||
|
action=gtk.FILE_CHOOSER_ACTION_OPEN, buttons=None):
|
||||||
|
gtk.FileChooserDialog.__init__(self)
|
||||||
|
self.resize(units.points_to_pixels(7 * 40),
|
||||||
|
units.points_to_pixels(7 * 30))
|
Loading…
Reference in New Issue
Block a user