Changeset 5faa4d354cbce7bb72b56073b7aa882b827437e2
- Timestamp:
- 27/10/10 19:27:34 (3 years ago)
- Children:
- 15ee35d7152e4a03ef7bfe10e7b6c6f293f4533a
- Parents:
- 678078dde9ef6c0bf5b9a1d1ed37b75e22fba696
- git-committer:
- Matias De la Puente <mfpuente.ar@…> (27/10/10 19:27:34)
- Files:
-
- 2 edited
-
gtkfrontend/documentpageview.vala (modified) (3 diffs)
-
libi4uccore/documentpageview.vala (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
gtkfrontend/documentpageview.vala
r3359237 r5faa4d3 40 40 } 41 41 42 public int tab_width 43 { 44 set { _source_view.tab_width = value; } 45 get { return (int)_source_view.tab_width; } 46 } 47 48 public bool auto_indent 49 { 50 set { _source_view.auto_indent = value; } 51 get { return _source_view.auto_indent; } 52 } 53 54 public bool highlight_current_line 55 { 56 set { _source_view.highlight_current_line = value; } 57 get { return _source_view.highlight_current_line; } 58 } 59 60 public bool insert_spaces_instead_of_tabs 61 { 62 set { _source_view.insert_spaces_instead_of_tabs = value; } 63 get { return _source_view.insert_spaces_instead_of_tabs; } 64 } 65 66 public bool show_line_numbers 67 { 68 set { _source_view.show_line_numbers = value; } 69 get { return _source_view.show_line_numbers; } 70 } 71 72 public bool highlight_matching_brackets 73 { 74 set { _source_buffer.highlight_matching_brackets = value; } 75 get { return _source_buffer.highlight_matching_brackets; } 76 } 42 public uint tab_width { set; get; } 43 public bool auto_indent { set; get; } 44 public bool highlight_current_line { set; get; } 45 public bool insert_spaces_instead_of_tabs { set; get; } 46 public bool show_line_numbers { set; get; } 47 public bool highlight_matching_brackets { set; get; } 77 48 78 49 public bool wrap_mode … … 135 106 public I4uc.Core.SearchBarView search_bar_view { get { return _search_bar_view; } } 136 107 137 public bool search_bar_view_visible 138 { 139 set { _search_bar_view.visible = value; } 140 get { return _search_bar_view.visible; } 141 } 142 143 public bool content_visible 144 { 145 set { _source_view.visible = value; } 146 get { return _source_view.visible; } 147 } 108 public bool search_bar_view_visible { set; get; } 109 public bool content_visible { set; get; } 148 110 149 111 public bool content_modified … … 174 136 pack_start (scrolled_window, true, true, 0); 175 137 138 //Bind properties 139 this.bind_property ("tab-width", _source_view, "tab-width", BindingFlags.BIDIRECTIONAL); 140 this.bind_property ("auto-indent", _source_view, "auto-indent", BindingFlags.BIDIRECTIONAL); 141 this.bind_property ("highlight-current-line", _source_view, "highlight-current-line", BindingFlags.BIDIRECTIONAL); 142 this.bind_property ("insert-spaces-instead-of-tabs", _source_view, "insert-spaces-instead-of-tabs", BindingFlags.BIDIRECTIONAL); 143 this.bind_property ("show-line-numbers", _source_view, "show-line-numbers", BindingFlags.BIDIRECTIONAL); 144 this.bind_property ("highlight-matching-brackets", _source_buffer, "highlight-matching-brackets", BindingFlags.BIDIRECTIONAL); 145 this.bind_property ("search-bar-view-visible", _search_bar_view, "visible", BindingFlags.BIDIRECTIONAL); 146 this.bind_property ("content-visible", _source_view, "visible", BindingFlags.BIDIRECTIONAL); 147 148 //Connect signals 176 149 _error_message_bar.response.connect (() => this.error_message_bar.ok_clicked ()); 177 150 _reload_message_bar.response.connect (on_reload_bar_response); -
libi4uccore/documentpageview.vala
r3359237 r5faa4d3 24 24 //Settings properties 25 25 public abstract string font_name { set; get; } 26 public abstract int tab_width { set; get; }26 public abstract uint tab_width { set; get; } 27 27 public abstract bool auto_indent { set; get; } 28 28 public abstract bool highlight_current_line { set; get; }
Note: See TracChangeset
for help on using the changeset viewer.

