[pitivi: 42/94] Remove preset, deleting json file
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 42/94] Remove preset, deleting json file
- Date: Sun, 11 Sep 2011 16:15:58 +0000 (UTC)
commit d34c26c049d9660497d9d55acdcdd4b7970e511c
Author: Feroze Naina <ferozenaina gmail com>
Date: Fri Jul 15 00:50:58 2011 +0530
Remove preset, deleting json file
pitivi/ui/encodingdialog.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/encodingdialog.py b/pitivi/ui/encodingdialog.py
index f0e1bba..c0ce42b 100644
--- a/pitivi/ui/encodingdialog.py
+++ b/pitivi/ui/encodingdialog.py
@@ -362,6 +362,12 @@ class EncodingDialog(Renderer, Loggable):
self.render_presets.savePreset()
self.render_presets.save()
+ def _removeRenderPresetButtonClickedCb(self, button):
+ selection = self.render_preset_treeview.get_selection()
+ model, iter_ = selection.get_selected()
+ if iter_:
+ self.render_presets.removePreset(model[iter_][0])
+
def _presetChangedCb(self, selection, mgr, update_preset_buttons_func):
"""Handle the selection of a preset."""
model, iter_ = selection.get_selected()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]