[pitivi] Respect variable naming conventions everywhere
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Respect variable naming conventions everywhere
- Date: Wed, 22 Sep 2010 13:46:33 +0000 (UTC)
commit 5b307819b92b8b0fe4c2411be89edab964992e4d
Author: Thibault Saunier <tsaunier gnome org>
Date: Wed Sep 1 14:17:13 2010 +0200
Respect variable naming conventions everywhere
pitivi/ui/clipproperties.py | 26 +++++++++++++-------------
pitivi/ui/effectlist.py | 24 ++++++++++++------------
2 files changed, 25 insertions(+), 25 deletions(-)
---
diff --git a/pitivi/ui/clipproperties.py b/pitivi/ui/clipproperties.py
index 33aad01..bebfc59 100644
--- a/pitivi/ui/clipproperties.py
+++ b/pitivi/ui/clipproperties.py
@@ -121,8 +121,8 @@ class EffectProperties(gtk.Expander):
self._config_ui_h_pos = {}
self._timeline = None
- self.VContent = gtk.VPaned()
- self.add(self.VContent)
+ self.vcontent = gtk.VPaned()
+ self.add(self.vcontent)
self.table = gtk.Table(3, 1, False)
@@ -200,9 +200,9 @@ class EffectProperties(gtk.Expander):
self.table.attach(self.treeview_scrollwin, 0, 1, 2, 3)
- self.VContent.pack1(self.table, resize=True, shrink=False)
+ self.vcontent.pack1(self.table, resize=True, shrink=False)
self._showInfoBar()
- self.Vcontent.show()
+ self.vcontent.show()
def _getTimeline(self):
return self._timeline
@@ -340,9 +340,9 @@ class EffectProperties(gtk.Expander):
self._hideEffectConfig()
self.storemodel.clear()
self._showInfoBar()
- self.VContent.show()
+ self.vcontent.show()
else:
- self.VContent.hide()
+ self.vcontent.hide()
def _activeChangedCb(self, unusedObj, unusedActive):
self._updateTreeview()
@@ -395,27 +395,27 @@ class EffectProperties(gtk.Expander):
def _updateEffectConfigUi(self):
if self._effect_config_ui is not None:
- self._config_ui_h_pos[self._effect_config_ui] = self.VContent.get_position()
+ self._config_ui_h_pos[self._effect_config_ui] = self.vcontent.get_position()
if self.selection.get_selected()[1]:
track_effect = self.storemodel.get_value(self.selection.get_selected()[1],
COL_TRACK_EFFECT)
- for widget in self.VContent.get_children():
+ for widget in self.vcontent.get_children():
if type(widget) in [gtk.ScrolledWindow, GstElementSettingsWidget]:
- self.VContent.remove(widget)
+ self.vcontent.remove(widget)
element = track_effect.getElement()
ui = self.effect_props_handling.getEffectConfigurationUI(element)
self._effect_config_ui = ui
if self._effect_config_ui:
- self.VContent.pack2(self._effect_config_ui,
+ self.vcontent.pack2(self._effect_config_ui,
resize=False,
shrink=False)
if self._config_ui_h_pos.has_key(self._effect_config_ui):
position = self._config_ui_h_pos.get(self._effect_config_ui)
- self.VContent.set_position(int(position))
+ self.vcontent.set_position(int(position))
else:
- self.VContent.set_position(10)
+ self.vcontent.set_position(10)
self._effect_config_ui.show_all()
self.selected_on_treeview = track_effect
@@ -424,6 +424,6 @@ class EffectProperties(gtk.Expander):
def _hideEffectConfig(self):
if self._effect_config_ui:
- self._config_ui_h_pos[self._effect_config_ui] = self.VContent.get_position()
+ self._config_ui_h_pos[self._effect_config_ui] = self.vcontent.get_position()
self._effect_config_ui.hide()
self._effect_config_ui = None
diff --git a/pitivi/ui/effectlist.py b/pitivi/ui/effectlist.py
index 1909883..02341c6 100644
--- a/pitivi/ui/effectlist.py
+++ b/pitivi/ui/effectlist.py
@@ -68,8 +68,8 @@ class EffectList(gtk.VBox, Loggable):
self.set_spacing(SPACING)
#Searchbox and combobox
- Hfilters = gtk.HBox()
- Hfilters.set_spacing(SPACING)
+ hfilters = gtk.HBox()
+ hfilters.set_spacing(SPACING)
self.effectType = gtk.combo_box_new_text()
self.effectType.append_text(_("Video effects"))
self.effectType.append_text(_("Audio effects"))
@@ -78,16 +78,16 @@ class EffectList(gtk.VBox, Loggable):
self.effectType.set_active(VIDEO_EFFECT)
- Hfilters.pack_start(self.effectType, expand=True)
- Hfilters.pack_end(self.effectCategory, expand=True)
+ hfilters.pack_start(self.effectType, expand=True)
+ hfilters.pack_end(self.effectCategory, expand=True)
- Hsearch = gtk.HBox()
- Hsearch.set_spacing(SPACING)
+ hsearch = gtk.HBox()
+ hsearch.set_spacing(SPACING)
searchStr = gtk.Label(_("Search:"))
self.searchEntry = gtk.Entry()
self.searchEntry.set_icon_from_stock(gtk.ENTRY_ICON_SECONDARY, "gtk-clear")
- Hsearch.pack_start(searchStr, expand=False)
- Hsearch.pack_end(self.searchEntry, expand=True)
+ hsearch.pack_start(searchStr, expand=False)
+ hsearch.pack_end(self.searchEntry, expand=True)
# Store
self.storemodel = gtk.ListStore(str, str, int, object, object, str)
@@ -148,8 +148,8 @@ class EffectList(gtk.VBox, Loggable):
self.treeview.connect("drag_begin", self._dndDragBeginCb)
self.treeview.connect("drag_data_get", self._dndDataGetCb)
- self.pack_start(Hfilters, expand=False)
- self.pack_start(Hsearch, expand=False, padding=PADDING)
+ self.pack_start(hfilters, expand=False)
+ self.pack_start(hsearch, expand=False, padding=PADDING)
self.pack_end(self.treeview_scrollwin, expand=True)
#create the filterModel
@@ -162,8 +162,8 @@ class EffectList(gtk.VBox, Loggable):
self._addFactories(self.app.effects.getAllAudioEffects(), AUDIO_EFFECT)
self.treeview_scrollwin.show_all()
- Hfilters.show_all()
- Hsearch.show_all()
+ hfilters.show_all()
+ hsearch.show_all()
def _addFactories(self, elements, effectType):
for element in elements:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]