If indent is negative, don't move the first line out into the margin,

2000-11-15  Havoc Pennington  <hp@redhat.com>

	* gtk/gtktextlayout.c (set_para_values): If indent is negative,
	don't move the first line out into the margin, instead move the
	whole paragraph in order to make space for the first line within
	the margin
This commit is contained in:
Havoc Pennington 2000-11-15 19:50:45 +00:00 committed by Havoc Pennington
parent 5bd2297932
commit c990d4ab1a
8 changed files with 49 additions and 13 deletions

View File

@ -1,3 +1,10 @@
2000-11-15 Havoc Pennington <hp@redhat.com>
* gtk/gtktextlayout.c (set_para_values): If indent is negative,
don't move the first line out into the margin, instead move the
whole paragraph in order to make space for the first line within
the margin
2000-11-15 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (changed_handler): offset redraw rect by

View File

@ -1,3 +1,10 @@
2000-11-15 Havoc Pennington <hp@redhat.com>
* gtk/gtktextlayout.c (set_para_values): If indent is negative,
don't move the first line out into the margin, instead move the
whole paragraph in order to make space for the first line within
the margin
2000-11-15 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (changed_handler): offset redraw rect by

View File

@ -1,3 +1,10 @@
2000-11-15 Havoc Pennington <hp@redhat.com>
* gtk/gtktextlayout.c (set_para_values): If indent is negative,
don't move the first line out into the margin, instead move the
whole paragraph in order to make space for the first line within
the margin
2000-11-15 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (changed_handler): offset redraw rect by

View File

@ -1,3 +1,10 @@
2000-11-15 Havoc Pennington <hp@redhat.com>
* gtk/gtktextlayout.c (set_para_values): If indent is negative,
don't move the first line out into the margin, instead move the
whole paragraph in order to make space for the first line within
the margin
2000-11-15 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (changed_handler): offset redraw rect by

View File

@ -1,3 +1,10 @@
2000-11-15 Havoc Pennington <hp@redhat.com>
* gtk/gtktextlayout.c (set_para_values): If indent is negative,
don't move the first line out into the margin, instead move the
whole paragraph in order to make space for the first line within
the margin
2000-11-15 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (changed_handler): offset redraw rect by

View File

@ -1,3 +1,10 @@
2000-11-15 Havoc Pennington <hp@redhat.com>
* gtk/gtktextlayout.c (set_para_values): If indent is negative,
don't move the first line out into the margin, instead move the
whole paragraph in order to make space for the first line within
the margin
2000-11-15 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (changed_handler): offset redraw rect by

View File

@ -1,3 +1,10 @@
2000-11-15 Havoc Pennington <hp@redhat.com>
* gtk/gtktextlayout.c (set_para_values): If indent is negative,
don't move the first line out into the margin, instead move the
whole paragraph in order to make space for the first line within
the margin
2000-11-15 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (changed_handler): offset redraw rect by

View File

@ -1117,21 +1117,8 @@ set_para_values (GtkTextLayout *layout,
display->left_margin = style->left_margin;
display->right_margin = style->right_margin;
if (style->indent < 0)
{
/* This means the margins can be negative. FIXME
* test that things work if they are.
*/
if (pango_align == PANGO_ALIGN_LEFT)
display->left_margin += style->indent;
else if (pango_align == PANGO_ALIGN_RIGHT)
display->right_margin += style->indent;
}
display->x_offset = display->left_margin;
pango_layout_set_indent (display->layout,
style->indent * PANGO_SCALE);