~ogra/willowng/willowng-intrepid

« back to all changes in this revision

Viewing changes to willowng-config

  • Committer: Oliver Grawert
  • Date: 2008-05-26 15:24:12 UTC
  • Revision ID: ogra@osiris-20080526152412-3803aeyc9b2iehxt
no need to hide the mainwindow in willowng-config for the service startup question, just make it insensitive

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
            self.iface = dbus.Interface(remote_object, 'com.ubuntu.WillowNG')
57
57
            self._setupDomainLists()
58
58
        except:
59
 
            mainwin.hide()
 
59
            mainwin.set_sensitive(False)
60
60
            dialog = gtk.MessageDialog(parent=mainwin, type=gtk.MESSAGE_ERROR, buttons=gtk.BUTTONS_YES_NO)
61
61
            dialog.set_title('')
62
62
            dialog.set_markup(_('Content filter not running! Start content filter?'))
63
63
            response = dialog.run()
 
64
            mainwin.set_sensitive(True)
64
65
            if response == gtk.RESPONSE_YES:
65
66
                commands.getoutput('/etc/dbus-1/event.d/99willowng start')
66
67
                os.execvp('willowng-config', ())