/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-05-17 10:04:13 UTC
  • mto: This revision was merged to the branch mainline in revision 201.
  • Revision ID: szilveszter.farkas@gmail.com-20070517100413-qdxlrzov3v84uair
Display status icons on the left side of the location entry.

Show diffs side-by-side

added added

removed removed

Lines of Context:
300
300
        """ Location Jump button handler. """
301
301
        location = self.entry_location.get_text()
302
302
        if os.path.isdir(location):
303
 
            print "DEBUG: location not a directory."
304
303
            self.set_path(location)
305
304
            self.refresh_right()
306
305
            self.image_location_error.hide()
307
306
        elif not os.path.isfile(location):
308
307
            # Doesn't seem to be a file nor a directory, trying to open a
309
308
            # remote location
310
 
            print "DEBUG: location not a file, trying remote."
311
309
            self._show_stock_image(gtk.STOCK_DISCONNECT)
312
310
            try:
313
311
                br = Branch.open_containing(location)[0]
1201
1199
        """ Show a stock image next to the location entry. """
1202
1200
        self.image_location_error.destroy()
1203
1201
        self.image_location_error = gtk.image_new_from_stock(stock_id, gtk.ICON_SIZE_BUTTON)
1204
 
        print "DEBUG: image_location_error =", self.image_location_error
1205
1202
        self.hbox_location.pack_start(self.image_location_error, False, False, 0)
1206
 
        self.hbox_location.reorder_child(self.image_location_error, 2)
 
1203
        if sys.platform == 'win32':
 
1204
            self.hbox_location.reorder_child(self.image_location_error, 2)
 
1205
        else:
 
1206
            self.hbox_location.reorder_child(self.image_location_error, 1)
1207
1207
        self.image_location_error.show()
1208
1208
        while gtk.events_pending():
1209
1209
            gtk.main_iteration()