~woutc/specto/specto-woutc-fake-gconf

« back to all changes in this revision

Viewing changes to spectlib/import_export.py

  • Committer: nekohayo
  • Date: 2007-03-13 19:40:29 UTC
  • Revision ID: svn-v3-trunk0:cc143b5f-0d1a-0410-b6b4-bdbe827cf625:trunk:87
    * copy Wout's import_export.glade from 0.2 branch to trunk
    * usability and code fixes for the export dialog
    * translation fixes
    * updated French translation and template

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
        
68
68
        if action == True:
69
69
            self.save = Save_dialog(self.specto, True, None)
70
 
            self.import_watch.set_title("Import watches")
71
 
            self.wTree.get_widget("button_action").set_label("Import watches")
72
 
            self.wTree.get_widget("label_title").set_label("Select the watches you want to import and click on \"Import watches\".")
 
70
            self.import_watch.set_title(_("Import watches"))
 
71
            self.wTree.get_widget("button_action").set_label(_("Import watches"))
73
72
        else:
74
 
            self.import_watch.set_title("Export watches")
75
 
            self.wTree.get_widget("button_action").set_label("Export watches")
76
 
            self.wTree.get_widget("label_title").set_label("Select the watches you want to export and click on \"Export watches\".")
 
73
            self.import_watch.set_title(_("Export watches"))
 
74
            self.wTree.get_widget("button_action").set_label(_("Export watches"))
77
75
        
78
76
        self.treeview=self.wTree.get_widget("treeview")
79
77
        self.treeview.set_model(self.model)
159
157
    
160
158
    def add_watch_entry(self, name, type, id):
161
159
        """ Add an entry to the notifier list. """
162
 
        i = id
 
160
        i = id#FIXME: those icons need to die when we figure out how to make cells' contents insensitive in notifier
163
161
        icon = gtk.gdk.pixbuf_new_from_file(self.specto.PATH + 'icons/notifier/error.png' )
164
162
        if type == 0:
165
163
            icon = gtk.gdk.pixbuf_new_from_file(self.specto.PATH + 'icons/notifier/faded/web.png' )