[gtk+/treeview-refactor] No need to correct direction for rtl, GtkCellArea takes care of that
- From: Kristian Rietveld <kristian src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/treeview-refactor] No need to correct direction for rtl, GtkCellArea takes care of that
- Date: Thu, 16 Dec 2010 00:47:54 +0000 (UTC)
commit 92e145e7191bd781106adc8c006772d20c527537
Author: Kristian Rietveld <kris gtk org>
Date: Wed Dec 15 21:27:40 2010 +0100
No need to correct direction for rtl, GtkCellArea takes care of that
gtk/gtktreeview.c | 11 +----------
1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 0eedbad..cf3f543 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -10426,16 +10426,7 @@ gtk_tree_view_move_cursor_left_right (GtkTreeView *tree_view,
}
}
- switch (count)
- {
- case -1:
- direction = rtl ? GTK_DIR_RIGHT : GTK_DIR_LEFT;
- break;
-
- case 1:
- direction = rtl ? GTK_DIR_LEFT : GTK_DIR_RIGHT;
- break;
- }
+ direction = count > 0 ? GTK_DIR_RIGHT : GTK_DIR_LEFT;
while (list)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]