[gnome-builder/gnome-builder-3-26] omnigutter: using breakpoints should not alter spacing
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-26] omnigutter: using breakpoints should not alter spacing
- Date: Wed, 20 Sep 2017 08:37:59 +0000 (UTC)
commit fe763ea346477f3c381a8ec9279c8cad40c64cb4
Author: Christian Hergert <chergert redhat com>
Date: Wed Sep 20 01:37:24 2017 -0700
omnigutter: using breakpoints should not alter spacing
We should not have different spaces between the number and the change line
based on visibility of breakpoints. This was too compressed. The point of
the breakpoint background was to use the proper spacing, not allow us to
shrink it past what looks pleasent.
libide/sourceview/ide-omni-gutter-renderer.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/libide/sourceview/ide-omni-gutter-renderer.c b/libide/sourceview/ide-omni-gutter-renderer.c
index 6722a64..b52ceca 100644
--- a/libide/sourceview/ide-omni-gutter-renderer.c
+++ b/libide/sourceview/ide-omni-gutter-renderer.c
@@ -652,14 +652,7 @@ ide_omni_gutter_renderer_begin (GtkSourceGutterRenderer *renderer,
self->layout = gtk_widget_create_pango_layout (GTK_WIDGET (view), "");
pango_layout_set_alignment (self->layout, PANGO_ALIGN_RIGHT);
pango_layout_set_font_description (self->layout, ide_source_view_get_font_desc (view));
-
- /* Tweak the sizing (for proper alignment) based on the if we are
- * going to be rendering the breakpoints arrow or not.
- */
- if (self->breakpoints != NULL)
- pango_layout_set_width (self->layout, (cell_area->width - ARROW_WIDTH - 4) * PANGO_SCALE);
- else
- pango_layout_set_width (self->layout, (cell_area->width - CHANGE_WIDTH - 2) * PANGO_SCALE);
+ pango_layout_set_width (self->layout, (cell_area->width - ARROW_WIDTH - 4) * PANGO_SCALE);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]