After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 341896 - gtktreeview has RTL problems with toggle buttons if using gtktreestore as a model
gtktreeview has RTL problems with toggle buttons if using gtktreestore as a m...
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
2.6.x
Other All
: Normal normal
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on:
Blocks: Persian
 
 
Reported: 2006-05-15 20:34 UTC by Roozbeh Pournader
Modified: 2006-05-16 01:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch against head to fix the problem, only tested on 2.6.10 (668 bytes, patch)
2006-05-15 20:39 UTC, Roozbeh Pournader
none Details | Review

Description Roozbeh Pournader 2006-05-15 20:34:18 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
Comment 1 Roozbeh Pournader 2006-05-15 20:39:45 UTC
Created attachment 65539 [details] [review]
Patch against head to fix the problem, only tested on 2.6.10
Comment 2 Matthias Clasen 2006-05-16 01:35:38 UTC
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)