app/widgets/gimpcellrenderertoggle.c handle RTL layout.
2003-03-13 Sven Neumann <sven@gimp.org> * app/widgets/gimpcellrenderertoggle.c * app/widgets/gimpcellrendererviewable.c: handle RTL layout.
This commit is contained in:
committed by
Sven Neumann
parent
5f6830341d
commit
0a8064f541
@ -266,7 +266,9 @@ gimp_cell_renderer_toggle_get_size (GtkCellRenderer *cell,
|
||||
{
|
||||
if (x_offset)
|
||||
{
|
||||
*x_offset = cell->xalign * (cell_area->width - calc_width);
|
||||
*x_offset = (((gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL) ?
|
||||
(1.0 - cell->xalign) : cell->xalign) *
|
||||
(cell_area->width - calc_width));
|
||||
*x_offset = MAX (*x_offset, 0);
|
||||
}
|
||||
if (y_offset)
|
||||
|
||||
Reference in New Issue
Block a user