sugar-toolkit-gtk3/shell/frame/PanelWindow.py
Marco Pesenti Gritti 7850970f27 Make the frame adapt to screen size again.
Several cleanups.
Fixup makefiles
2006-09-07 19:51:27 +02:00

17 lines
399 B
Python

import gtk
from sugar.canvas.GridWindow import GridWindow
class PanelWindow(GridWindow):
def __init__(self, model):
GridWindow.__init__(self, model)
self.set_decorated(False)
self.realize()
self.window.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_DIALOG)
self.window.set_accept_focus(False)
screen = gtk.gdk.screen_get_default()
self.window.set_transient_for(screen.get_root_window())