Can't show blank line on windows
I have a app that integrate with GtkSourceView4 (Tested V3 also), it can't show the blank line on windows, but Linux is OK, is it a bug or I'm wrong ?
OS: Windows 7 6.1.7601(64 bit)
MSYS2: Pacman v5.1.3(Mintty: 3.0.2)
GTK: 3.24.10-3
GLib: 2.60.6-1
GtkSourceview4: 4.2.0-1
GtkSourceview3: 3.24.11-1
GCC: 9.2.0-1
Vala: 0.44.7-1
private void build_source_editor_box()
{
// create source editor of preview box
var manager = Gtk.SourceLanguageManager.get_default ();
var style_scheme_manager = new Gtk.SourceStyleSchemeManager ();
var m_source_editor_buffer = new Gtk.SourceBuffer (null);
m_source_editor_buffer.max_undo_levels = int.MAX;
m_source_editor_buffer.highlight_syntax = true;
m_source_editor_buffer.highlight_matching_brackets = true;
m_source_editor_buffer.style_scheme = style_scheme_manager.get_scheme ("classic");
m_source_editor_buffer.language = manager.get_language ("sql");
var m_source_editor_view = new Gtk.SourceView.with_buffer (m_source_editor_buffer);
// m_source_editor_view.get_style_context ().add_class ("source-editor");
m_source_editor_view.show_line_numbers = true;
m_source_editor_view.highlight_current_line = true;
m_source_editor_view.show_right_margin = false;
m_source_editor_view.wrap_mode = Gtk.WrapMode.WORD;
m_source_editor_view.smart_home_end = Gtk.SourceSmartHomeEndType.AFTER;
m_source_editor_view.top_margin = 6;
m_source_editor_view.bottom_margin = 10;
m_source_editor_view.tab_width = 4;
m_source_editor_view.insert_spaces_instead_of_tabs = true;
m_source_editor_view.indent_width = 4;
m_source_editor_view.indent_on_tab = true;
Gtk.drag_dest_add_uri_targets (m_source_editor_view);
// m_source_editor_view.key_press_event.connect(handle_editor_key_pressed);
var editor_scroll_window = new Gtk.ScrolledWindow (null, null);
editor_scroll_window.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
editor_scroll_window.add (m_source_editor_view);
// add editor_scroll_window to your testing code
}