Przeglądaj źródła

wxGUI: fix quit layout (on gnome)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67724 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 lat temu
rodzic
commit
3ca0274241
1 zmienionych plików z 3 dodań i 5 usunięć
  1. 3 5
      gui/wxpython/gui_core/dialogs.py

+ 3 - 5
gui/wxpython/gui_core/dialogs.py

@@ -18,7 +18,7 @@ List of classes:
  - :class:`SymbolDialog`
  - :class:`QuitDialog`
 
-(C) 2008-2015 by the GRASS Development Team
+(C) 2008-2016 by the GRASS Development Team
 
 This program is free software under the GNU General Public License
 (>=v2). Read the file COPYING that comes with GRASS for details.
@@ -2103,8 +2103,7 @@ class HyperlinkDialog(wx.Dialog):
 
 class QuitDialog(wx.Dialog):
     def __init__(self, parent, title=_("Quit GRASS GIS"), id=wx.ID_ANY,
-                 style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER,
-                 size=(350, 125), **kwargs):
+                 style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, **kwargs):
         """Dialog to quit GRASS
         
         :param parent: window
@@ -2131,7 +2130,6 @@ class QuitDialog(wx.Dialog):
         self.btnQuit.Bind(wx.EVT_BUTTON, self.OnQuit)
         
         self.__layout()
-        self.SetSize(size)
 
     def __layout(self):
         """Do layout"""
@@ -2152,7 +2150,7 @@ class QuitDialog(wx.Dialog):
                   flag = wx.ALL | wx.ALIGN_RIGHT, border = 5)
 
         self.panel.SetSizer(sizer)
-        sizer.Fit(self.panel)
+        sizer.Fit(self)
         self.Layout()
         
     def OnClose(self, event):