[gnome-sudoku] SudokuView: Make it works correct in RTL
- From: Yosef Or Boczko <yoseforb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sudoku] SudokuView: Make it works correct in RTL
- Date: Sun, 1 Jun 2014 17:07:21 +0000 (UTC)
commit 3a0a84c0c07af9e6156f6c87ba1042845392e71b
Author: Yosef Or Boczko <yoseforb src gnome org>
Date: Sun Jun 1 20:06:11 2014 +0300
SudokuView: Make it works correct in RTL
https://bugzilla.gnome.org/show_bug.cgi?id=731075
src/sudoku-view.vala | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/sudoku-view.vala b/src/sudoku-view.vala
index 279d376..31ac45c 100644
--- a/src/sudoku-view.vala
+++ b/src/sudoku-view.vala
@@ -564,7 +564,14 @@ public class SudokuView : Gtk.AspectFrame
if (col != 0 && (col % game.board.block_cols) == 0)
{
- cell.set_margin_left ((int) grid.border_width);
+ if (get_direction () == Gtk.TextDirection.RTL)
+ {
+ cell.set_margin_right ((int) grid.border_width);
+ }
+ else
+ {
+ cell.set_margin_left ((int) grid.border_width);
+ }
}
if (row != 0 && (row % game.board.block_rows) == 0)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]