diff --git a/src/dialogs.py b/src/dialogs.py index 990b80e5a..0a20d849c 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -513,14 +513,13 @@ class InformationDialog(HigDialog): HigDialog.__init__( self, None, pritext, sectext, gtk.STOCK_DIALOG_INFO, [ [ gtk.STOCK_OK, gtk.RESPONSE_OK ] ] - ) - hbox = self.action_area - ok_button = hbox.get_children()[0] - ok_button.connect('clicked', self.on_ok_button_clicked) - self.show_all() - - def on_ok_button_clicked(self, widget): - self.destroy() + ) + ok_button = self.action_area.get_children()[0] + ok_button.connect('clicked', self.on_ok_button_clicked) + self.show_all() + + def on_ok_button_clicked(self, widget): + self.destroy() class InputDialog: '''Class for Input dialog'''