[gnome-builder/wip/gtk4-port] plugins/omni-gutter: set single-paragraph optimizations
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] plugins/omni-gutter: set single-paragraph optimizations
- Date: Wed, 27 Apr 2022 23:45:26 +0000 (UTC)
commit a75fd4d08eb3b373c4d2ce7d168a8615858ad135
Author: Christian Hergert <chergert redhat com>
Date: Wed Apr 27 16:44:19 2022 -0700
plugins/omni-gutter: set single-paragraph optimizations
src/plugins/omni-gutter/gbp-omni-gutter-renderer.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/plugins/omni-gutter/gbp-omni-gutter-renderer.c
b/src/plugins/omni-gutter/gbp-omni-gutter-renderer.c
index 5786eb61e..6d5262ede 100644
--- a/src/plugins/omni-gutter/gbp-omni-gutter-renderer.c
+++ b/src/plugins/omni-gutter/gbp-omni-gutter-renderer.c
@@ -756,6 +756,7 @@ gbp_omni_gutter_renderer_measure (GbpOmniGutterRenderer *self)
* match the font styling as much as possible.
*/
layout = gtk_widget_create_pango_layout (GTK_WIDGET (self), numbers);
+ pango_layout_set_single_paragraph_mode (layout, TRUE);
/*
* Now cache the width of the text layout so we can simplify our
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]