Changeset 81


Ignore:
Timestamp:
Feb 4, 2006, 6:14:43 AM (15 years ago)
Author:
joshe
Message:

Fix a couple of positioning bugs with right-to-left languages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/trcellrenderertorrent.c

    r70 r81  
    282282  complete.height = bar.height - style->ythickness * 2;
    283283  if(rtl)
    284     complete.x += bar.width - complete.width;
     284    complete.x += bar.width - (complete.width + style->xthickness * 2);
    285285
    286286  /* set up the dimensions for the text under the bar */
     
    289289  text.width = bar.width;
    290290  text.height = area->height - bar.height;
     291  if(rtl && text.width > trect.width)
     292    text.x += text.width - trect.width;
    291293
    292294  /* draw the background of the bar */
     
    301303
    302304  /* draw the text under the bar */
    303   gtk_paint_layout(style, window, (GTK_CELL_RENDERER_SELECTED & flags ?
     305  gtk_paint_layout(widget->style, window, (GTK_CELL_RENDERER_SELECTED & flags ?
    304306                   GTK_STATE_SELECTED : GTK_STATE_NORMAL), FALSE, &text,
    305307                   widget, "cellrenderertext", text.x, text.y, tlayout);
Note: See TracChangeset for help on using the changeset viewer.