Commit 05cfd174 authored by Christian Hergert's avatar Christian Hergert
Browse files

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.
parent 8b3c4214
......@@ -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);
pango_layout_set_width (self->layout, (cell_area->width - CHANGE_WIDTH - 2) * PANGO_SCALE);
static gboolean
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment