"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "flowblade-trunk/Flowblade/editorlayout.py" between
flowblade-2.8.0.1.tar.gz and flowblade-2.8.0.2.tar.gz

About: Flowblade is a multitrack non-linear video editor to compose movies from video clips, audio clips and graphics files.

editorlayout.py  (flowblade-2.8.0.1):editorlayout.py  (flowblade-2.8.0.2)
skipping to change at line 106 skipping to change at line 106
appconsts.PANEL_MEDIA_AND_BINS_SMALL_SCREEN: None appconsts.PANEL_MEDIA_AND_BINS_SMALL_SCREEN: None
} }
UP = 0 UP = 0
DOWN = 1 DOWN = 1
DEFAULT_TABS_POSITIONS = { \ DEFAULT_TABS_POSITIONS = { \
appconsts.PANEL_PLACEMENT_TOP_ROW_DEFAULT: DOWN, appconsts.PANEL_PLACEMENT_TOP_ROW_DEFAULT: DOWN,
appconsts.PANEL_PLACEMENT_TOP_ROW_RIGHT: DOWN, appconsts.PANEL_PLACEMENT_TOP_ROW_RIGHT: DOWN,
appconsts.PANEL_PLACEMENT_LEFT_COLUMN: DOWN, appconsts.PANEL_PLACEMENT_LEFT_COLUMN: DOWN,
appconsts.PANEL_PLACEMENT_BOTTOM_ROW_LEFT: UP, appconsts.PANEL_PLACEMENT_BOTTOM_ROW_LEFT: UP,
appconsts.PANEL_PLACEMENT_BOTTOM_ROW_RIGHT: UP appconsts.PANEL_PLACEMENT_BOTTOM_ROW_RIGHT: UP,
appconsts.PANEL_PLACEMENT_TOP_ROW_PROJECT_DEFAULT: DOWN
} }
# Saved data struct holding panel positions information. # Saved data struct holding panel positions information.
_panel_positions = None _panel_positions = None
# Gtk.Notebooks that may or may not exist to containe 2-N panel is layou positio n # Gtk.Notebooks that may or may not exist to containe 2-N panel is layou positio n
_position_notebooks = {} _position_notebooks = {}
# Dicts for translations. # Dicts for translations.
_positions_names = {} _positions_names = {}
skipping to change at line 341 skipping to change at line 342
def _create_notebook(position, editor_window): def _create_notebook(position, editor_window):
notebook = Gtk.Notebook() notebook = Gtk.Notebook()
panels = _get_position_panels(position) panels = _get_position_panels(position)
panel_widgets = _get_panels_widgets_dict(editor_window) panel_widgets = _get_panels_widgets_dict(editor_window)
for panel_id in panels: for panel_id in panels:
widget = panel_widgets[panel_id] widget = panel_widgets[panel_id]
_set_min_size(panel_id, widget) _set_min_size(panel_id, widget)
label = Gtk.Label(label=_panels_names[panel_id]) label = Gtk.Label(label=_panels_names[panel_id])
notebook.append_page(widget, label) notebook.append_page(widget, label)
tabs_positions = editorpersistance.prefs.positions_tabs try:
tabs_pos = tabs_positions[position] tabs_positions = editorpersistance.prefs.positions_tabs
tabs_pos = tabs_positions[position]
except:
editorpersistance.prefs.positions_tabs = DEFAULT_TABS_POSITIONS
editorpersistance.save()
tabs_positions = editorpersistance.prefs.positions_tabs
tabs_pos = tabs_positions[position]
if tabs_pos == UP: if tabs_pos == UP:
notebook.set_tab_pos(Gtk.PositionType.TOP) notebook.set_tab_pos(Gtk.PositionType.TOP)
else: else:
notebook.set_tab_pos(Gtk.PositionType.BOTTOM) notebook.set_tab_pos(Gtk.PositionType.BOTTOM)
return notebook return notebook
# ---------------------------------------------------------- APP MENU # ---------------------------------------------------------- APP MENU
def get_panel_positions_menu_item(): def get_panel_positions_menu_item():
panel_positions_menu_item = Gtk.MenuItem(_("Panel Placement")) panel_positions_menu_item = Gtk.MenuItem(_("Panel Placement"))
 End of changes. 2 change blocks. 
3 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)