~ubuntu-branches/debian/sid/pondus/sid

« back to all changes in this revision

Viewing changes to pondus/gui/window_main.py

  • Committer: Bazaar Package Importer
  • Author(s): Eike Nicklas
  • Date: 2010-12-21 21:30:38 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20101221213038-j3xm35pze55a9w3s
Tags: 0.7.3-1
* switch from python-support to dh_python2
* update Standards-Version to 3.9.1: no changes required
* debian/control:
  - update homepage
* debian/copyright:
  - update for 2010 and 2011
  - update to conform with DEP5 candidate
* debian/rules:
  - add '--install-layout=deb' and remove '--prefix=/usr'
* debian/source/format:
  - change source format to 3.0 (quilt)
* debian/watch:
  - update homepage

Show diffs side-by-side

added added

removed removed

Lines of Context:
166
166
    def add_dialog(self, widget):
167
167
        """Runs the dialog to add a new dataset and then adds it to
168
168
        self.datasetdata and self.datalist."""
169
 
        dialog = AddDataDialog(self.datasetdata.get_new_dataset(), edit=False)
 
169
        dialog = AddDataDialog(self.window,
 
170
                            self.datasetdata.get_new_dataset(), edit=False)
170
171
        newdata = dialog.run()
171
172
        if newdata is not None:
172
173
            self.datasetdata.add(newdata)
207
208
        to self.datasetdata and self.datalist."""
208
209
        (listmodel, treeiter) = self.treeselection.get_selected()
209
210
        id_selected = listmodel.get_value(treeiter, 0)
210
 
        dialog = AddDataDialog(self.datasetdata.get(id_selected), edit=True)
 
211
        dialog = AddDataDialog(self.window,
 
212
                            self.datasetdata.get(id_selected), edit=True)
211
213
        newdata = dialog.run()
212
214
        if newdata is not None:
213
215
            self.datasetdata.add(newdata)