Skip to content

Commit

Permalink
Adding an icon attribute to the rest editor to be able to customize i…
Browse files Browse the repository at this point in the history
…t when embedded in another application.
  • Loading branch information
Jonathan Rocher committed Feb 15, 2012
1 parent 19d9816 commit 9461857
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions rested/rest_editor_view.py
Expand Up @@ -773,7 +773,7 @@ def sync_scrollbar_html2rst(self, info):
info.object.selected_view._sync_scrollbar_html2rst_action = True

class ReSTHTMLEditorView(HasTraits):

root_path = Str(USER_HOME_DIRECTORY)
filters = List(['*.rst', '*.txt'])

Expand All @@ -789,6 +789,7 @@ class ReSTHTMLEditorView(HasTraits):
sync_on_change = Bool(True)
auto_table_fix = Bool(False)
sphinx_static_path = Str
icon = Any()

_tree = Instance(FileTree)

Expand Down Expand Up @@ -980,16 +981,17 @@ def trait_view(self, name='default'):
ui_kind='panel',
selected='selected_view',
page_name='.title')),
id='vma.rest_editor_view.EditorSplit',
id='rest_editor_view.EditorSplit',
orientation='horizontal', layout='split',
show_labels=False),
id='vma.rest_editor_view.EditorView',
id='rest_editor_view.EditorView',
handler=ReSTHTMLEditorHandler(),
width=1024, height=786, resizable=True,
menubar=menu_bar,
toolbar = tool_bar,
key_bindings=key_bindings,
title="reStructured Text Editor")
title="reStructured Text Editor",
icon = self.icon)

#-----------------------------------------------------------------
# ReSTHTMLEditorView interface
Expand Down

0 comments on commit 9461857

Please sign in to comment.