Skip to content

Commit 7a49b92

Browse files
authored
InfoPanel: TextView uses properties (#925)
1 parent b3fa36f commit 7a49b92

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

src/EventEdition/InfoPanel.vala

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,14 @@ public class Maya.View.EventEdition.InfoPanel : Gtk.Grid {
177177
parent_dialog.source = calchooser.current_source;
178178
}
179179

180-
comment_textview = new Granite.HyperTextView ();
181-
comment_textview.set_wrap_mode (Gtk.WrapMode.WORD_CHAR);
182-
comment_textview.accepts_tab = false;
183-
comment_textview.set_border_window_size (Gtk.TextWindowType.LEFT, 2);
184-
comment_textview.set_border_window_size (Gtk.TextWindowType.RIGHT, 2);
185-
comment_textview.set_border_window_size (Gtk.TextWindowType.TOP, 2);
186-
comment_textview.set_border_window_size (Gtk.TextWindowType.BOTTOM, 2);
180+
comment_textview = new Granite.HyperTextView () {
181+
accepts_tab = false,
182+
wrap_mode = WORD_CHAR,
183+
top_margin = 3,
184+
right_margin = 3,
185+
bottom_margin = 3,
186+
left_margin = 3,
187+
};
187188

188189
var comment_label = new Granite.HeaderLabel (_("Comments:")) {
189190
mnemonic_widget = comment_textview

0 commit comments

Comments
 (0)