/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to olive/__init__.py

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2007-01-29 21:29:04 UTC
  • mfrom: (126.1.4 bzr-gtk)
  • Revision ID: szilveszter.farkas@gmail.com-20070129212904-g4wf9g0i8a244h4n
Merge from integration branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
        # Connect the signals to the handlers
158
158
        self.toplevel.signal_autoconnect(dic)
159
159
        
 
160
        self._just_started = True
 
161
        
160
162
        # Apply window size and position
161
163
        width = self.pref.get_preference('window_width', 'int')
162
164
        height = self.pref.get_preference('window_height', 'int')
189
191
 
190
192
        self.set_path(os.getcwd())
191
193
        self._load_right()
 
194
        
 
195
        self._just_started = False
192
196
 
193
197
    def set_path(self, path):
194
198
        self.path = path
878
882
        drives = self._harddisks()
879
883
        for drive in drives:
880
884
            self.combobox_drive.append_text(drive)
 
885
        self.combobox_drive.set_active(drives.index(os.getcwd()[0:2]))
881
886
    
882
887
    def _refresh_drives(self, combobox):
 
888
        if self._just_started:
 
889
            return
883
890
        model = combobox.get_model()
884
891
        active = combobox.get_active()
885
892
        if active >= 0: