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:
		
				
					committed by
					
						
						Havoc Pennington
					
				
			
			
				
	
			
			
			
						parent
						
							5bd2297932
						
					
				
				
					commit
					c990d4ab1a
				
			@ -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
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
@ -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);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user