[gnome-text-editor] document: drop the line spacing tags
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-text-editor] document: drop the line spacing tags
- Date: Tue, 12 Oct 2021 19:40:43 +0000 (UTC)
commit 61bfd18d3e00693c9503061f58b5f5c81ec51d55
Author: Christian Hergert <chergert redhat com>
Date: Tue Oct 12 12:39:34 2021 -0700
document: drop the line spacing tags
We don't use these (in that they aren't even working right now) so we
should instead use CSS to set line-height based on what we get for the
font description.
src/editor-document.c | 18 ------------------
1 file changed, 18 deletions(-)
---
diff --git a/src/editor-document.c b/src/editor-document.c
index 19e9957..dac9385 100644
--- a/src/editor-document.c
+++ b/src/editor-document.c
@@ -44,7 +44,6 @@ struct _EditorDocument
EditorBufferMonitor *monitor;
GtkSourceFile *file;
gchar *draft_id;
- GtkTextTag *line_spacing_tag;
const GtkSourceEncoding *encoding;
EditorSpellChecker *spell_checker;
@@ -115,17 +114,6 @@ save_free (Save *save)
g_slice_free (Save, save);
}
-static void
-editor_document_apply_spacing (EditorDocument *self)
-{
- GtkTextIter begin, end;
-
- g_assert (EDITOR_IS_DOCUMENT (self));
-
- gtk_text_buffer_get_bounds (GTK_TEXT_BUFFER (self), &begin, &end);
- gtk_text_buffer_apply_tag (GTK_TEXT_BUFFER (self), self->line_spacing_tag, &begin, &end);
-}
-
static GMountOperation *
editor_document_mount_operation_factory (GtkSourceFile *file,
gpointer user_data)
@@ -401,12 +389,6 @@ editor_document_constructed (GObject *object)
self->spell_adapter, "enabled",
G_SETTINGS_BIND_GET,
apply_spellcheck_mapping, NULL, self, NULL);
-
- self->line_spacing_tag = gtk_text_buffer_create_tag (GTK_TEXT_BUFFER (self),
- NULL,
- "pixels-below-lines", 2,
- NULL);
- editor_document_apply_spacing (self);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]