~ubuntu-branches/ubuntu/trusty/pitivi/trusty

« back to all changes in this revision

Viewing changes to pitivi/ui/ruler.py

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2011-07-07 13:43:47 UTC
  • mto: (6.1.9 sid) (1.2.12)
  • mto: This revision was merged to the branch mainline in revision 32.
  • Revision ID: james.westby@ubuntu.com-20110707134347-cari9kxjiakzej9z
Tags: upstream-0.14.1
ImportĀ upstreamĀ versionĀ 0.14.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#
17
17
# You should have received a copy of the GNU Lesser General Public
18
18
# License along with this program; if not, write to the
19
 
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
 
# Boston, MA 02111-1307, USA.
 
19
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
 
20
# Boston, MA 02110-1301, USA.
21
21
 
22
22
"""
23
23
Widget for the complex view ruler
31
31
from pitivi.log.loggable import Loggable
32
32
from pitivi.utils import time_to_string
33
33
 
 
34
 
34
35
class ScaleRuler(gtk.DrawingArea, Zoomable, Loggable):
35
36
 
36
37
    __gsignals__ = {
37
 
        "expose-event":"override",
38
 
        "button-press-event":"override",
39
 
        "button-release-event":"override",
40
 
        "motion-notify-event":"override",
41
 
        "scroll-event" : "override",
 
38
        "expose-event": "override",
 
39
        "button-press-event": "override",
 
40
        "button-release-event": "override",
 
41
        "motion-notify-event": "override",
 
42
        "scroll-event": "override",
42
43
        "seek": (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE,
43
44
                [gobject.TYPE_UINT64])
44
45
        }
75
76
        self.max_duration = gst.CLOCK_TIME_NONE
76
77
        self.min_frame_spacing = 5.0
77
78
        self.frame_height = 5.0
78
 
        self.frame_rate = gst.Fraction(1/1)
 
79
        self.frame_rate = gst.Fraction(1 / 1)
79
80
        self.app = instance
80
81
        self.need_update = True
81
82