[pitivi] ProjectSettings: allow editing preset names directly
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] ProjectSettings: allow editing preset names directly
- Date: Fri, 10 Dec 2010 17:52:52 +0000 (UTC)
commit 93f0ae9a349afa296d70895ada697a84f6f8e65f
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Fri Nov 26 11:42:45 2010 +0000
ProjectSettings: allow editing preset names directly
pitivi/ui/projectsettings.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/projectsettings.py b/pitivi/ui/projectsettings.py
index 25b6c52..708b085 100644
--- a/pitivi/ui/projectsettings.py
+++ b/pitivi/ui/projectsettings.py
@@ -173,6 +173,10 @@ class ProjectSettingsDialog(GladeWindow):
self.updateUI()
+ def presetNameEditedCb(self, renderer, path, new_text, mgr):
+ mgr.renamePreset(path, new_text)
+ mgr.cur_preset = new_text
+
def fillTreeview(self, treeview, mgr):
renderer = gtk.CellRendererText()
renderer.props.editable = True
@@ -181,6 +185,7 @@ class ProjectSettingsDialog(GladeWindow):
treeview.props.headers_visible = False
model = mgr.getModel()
treeview.set_model(model)
+ renderer.connect("edited", self.presetNameEditedCb, mgr)
def constrained(self):
return self.constrain_sar_button.props.active
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]