~kerry.hatcher/oggconvert/trunk

« back to all changes in this revision

Viewing changes to OggConvert/ocv_in_progress.py

  • Committer: Tristan Brindle
  • Date: 2007-11-19 00:03:16 UTC
  • Revision ID: tristan@jetengine-20071119000316-9bte141jw0ucdft2
Lots of little changes to bring OggConvert mostly inline with 
OggConvert++ (except for the new media checker)

Changes:

* ocv_gtk.py split into ocv_main.py and ocv_in_progress.py
* ocv_gst.py split into ocv_transcoder.py and ocv_media_checker.py
* Lots of tidying up of messy functions in ocv_main
* The media checker is now callback-based. It still blocks the UI, but 
at least it doesn't *look* like it blocks the UI any more ;-). It's 
still using the discoverer at the moment, but that will change
* Brought A. Bram Neijt's OggConvert icon into the source tree and use 
it as the main icon for the app.
* The URL in the About dialogue is now clickable, opening a new browser 
tab. I know how important this is.
* Minor change to the way the time remaining is displayed.
* Audio options are greyed-out when a video-only file is selected, and 
vice-versa.
* Use the extension ".ogv" for Ogg video files (both Theora and Dirac), 
in accordance with the new Xiph.org guidelines. Fixes bug #160054.

Still to do:

* Port the OggConvert++ media checker to Python
* Get the transcoder to send out "paused" and "playing" signals which 
the GUI can listen for.
* Investigate whether we can support Gnome-VFS for input/output without 
depending on it (which I don't want to do)
* Bring in all the translations for Launchpad.
* Release 0.3.0
* Party like it's 1999.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# OggConvert -- Converts media files to Free formats
 
3
# (c) 2007 Tristan Brindle <tcbrindle at gmail dot com>
 
4
#
 
5
# This program is free software; you can redistribute it and/or
 
6
# modify it under the terms of the GNU Lesser General Public
 
7
# License as published by the Free Software Foundation; either
 
8
# version 2.1 of the License, or (at your option) any later version.
 
9
 
10
# This program is distributed in the hope that it will be useful,
 
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
# Lesser General Public License for more details.
 
14
 
15
# You should have received a copy of the GNU Lesser General Public
 
16
# License along with this program; if not, write to the Free Software
 
17
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
18
#
 
19
 
1
20
import os
2
21
import gobject
3
22
import gtk
82
101
            timerem = timeremaining(self._timer, percent)
83
102
            self._progressbar.set_fraction(completed)
84
103
            self._progressbar.set_text(
85
 
                    _("%.1f%% completed, about %s left") %(percent, timerem))
 
104
                    _("%.1f%% completed, about %sleft") %(percent, timerem))
86
105
            return True
87
106
        else: 
88
107
            self._progressbar.set_text(_('Paused (%.1f%% completed)') %(percent))