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:
Sven Neumann
2003-03-13 13:43:06 +00:00
committed by Sven Neumann
parent 5f6830341d
commit 0a8064f541
4 changed files with 13 additions and 3 deletions

View File

@ -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)