From 1e67eac391828e7a8a3f5fea6116bcbf05c10c95 Mon Sep 17 00:00:00 2001 From: Wall Date: Sun, 1 Mar 2009 10:03:26 +0000 Subject: [PATCH] PropertiesDialog: moved init code to parent's init call --- src/findit.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/findit.py b/src/findit.py index 240ae75..dc64d92 100755 --- a/src/findit.py +++ b/src/findit.py @@ -100,11 +100,9 @@ class PropertiesDialog(gtk.Dialog): def __init__(self, app, path, size, bytesize): """Create&show file properties dialog.""" - gtk.Dialog.__init__(self) - self.set_title( _('File properties') ) - self.set_transient_for(app) + gtk.Dialog.__init__(self, _('File properties'), app, + buttons=(gtk.STOCK_OK, gtk.RESPONSE_OK)) self.set_wmclass('PropertiesDialog', 'FindIT') - self.add_buttons(gtk.STOCK_OK, gtk.RESPONSE_OK) self.set_resizable(False) # Достаем свойства выбранного файла -- 1.7.9.5