GNOME Bugzilla – Bug 341896
gtktreeview has RTL problems with toggle buttons if using gtktreestore as a model
Last modified: 2006-05-16 01:35:38 UTC
Toggle buttons in a GtkTreeView do not get selected when one clicks inside them. Instead, one should click to the right of them to make them get selected. This only happens if the model of the tree is a GtkTreeStore. To reproduce the problem: 1) edit the pygtk2 demo list_store.py (resides at /usr/lib/pygtk/2.0/demos/list_store.py on my box), replacing "gtk.ListStore" with "gtk.TreeStore" and "lstore.append()" with "lstore.append(None)". 2) Run: LC_ALL=fa_IR.UTF-8 python /usr/lib/pygtk/2.0/demos/list_store.py 3) Click on the toggle buttons. Actual result: They don't get selected, while they should. The bug still exists in HEAD. Will attach a patch. FarsiWeb's internal reference: bug #327, gtk2-rtl-treeview.patch, originally reported by Farzad Ghanei, patch by Roozbeh Pournader
Created attachment 65539 [details] [review] Patch against head to fix the problem, only tested on 2.6.10
2006-05-15 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix an RTL problem with toggles in expander columns. (#341896, Roozbeh Pournader)