[pitivi: 3/5] Get the project year as an integer from the project settings UI



commit 14820f76de66af1a50a00d6e438daef7391c6e8e
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date:   Tue Aug 16 13:21:11 2011 -0400

    Get the project year as an integer from the project settings UI
    
    Fixes bug #656532

 pitivi/ui/projectsettings.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/ui/projectsettings.py b/pitivi/ui/projectsettings.py
index 6bf111a..c58c0fe 100644
--- a/pitivi/ui/projectsettings.py
+++ b/pitivi/ui/projectsettings.py
@@ -544,7 +544,7 @@ class ProjectSettingsDialog():
     def updateMetadata(self):
         self.project.name = self.title_entry.get_text()
         self.project.author = self.author_entry.get_text()
-        self.project.year = str(self.year_spinbutton.get_adjustment().get_value())
+        self.project.year = str(self.year_spinbutton.get_value_as_int())
 
     def updateSettings(self):
         width = int(self.width_spinbutton.get_value())



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]