[gtranslator] Implicit trailing newline in sourceview
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator] Implicit trailing newline in sourceview
- Date: Sun, 3 Feb 2019 19:39:42 +0000 (UTC)
commit 083aed58fdee92cff955e4899fc53bc296819527
Author: Daniel GarcĂa Moreno <dani danigm net>
Date: Sun Feb 3 20:37:52 2019 +0100
Implicit trailing newline in sourceview
Fix #53
src/gtr-view.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/gtr-view.c b/src/gtr-view.c
index be658d5a..bc91a716 100644
--- a/src/gtr-view.c
+++ b/src/gtr-view.c
@@ -335,12 +335,15 @@ gtr_view_enable_visible_whitespace (GtrView * view, gboolean enable)
{
GtkSourceView *source;
GtkSourceSpaceDrawer *drawer;
+ GtkSourceBuffer *buffer;
g_return_if_fail (GTR_IS_VIEW (view));
source = GTK_SOURCE_VIEW (view);
drawer = gtk_source_view_get_space_drawer (source);
gtk_source_space_drawer_set_enable_matrix (drawer, TRUE);
+ buffer = GTK_SOURCE_BUFFER (gtk_text_view_get_buffer (GTK_TEXT_VIEW (view)));
+ gtk_source_buffer_set_implicit_trailing_newline (buffer, FALSE);
if (enable)
gtk_source_space_drawer_set_types_for_locations (drawer,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]