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 300996 - gtk_icon_view_select_path doesn't update cursor_item
gtk_icon_view_select_path doesn't update cursor_item
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkIconView
2.6.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on: 148144
Blocks:
 
 
Reported: 2005-04-17 19:56 UTC by Mathias Hasselmann (IRC: tbf)
Modified: 2005-05-02 20:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mathias Hasselmann (IRC: tbf) 2005-04-17 19:56:25 UTC
When programatically selecting some item in SINGLE or BROWSE mode via
gtk_icon_view_select_path, the item specified by path is highlighted, but the
cursor remains at the previously selected item. This is confusing and looks bogous.

Therefore either the cursor_item should point on the activated item after
calling select-path or there should be some API for modifying the cursor_item.
Comment 1 Matthias Clasen 2005-04-29 17:12:40 UTC
gtk_icon_view_select_path() only modifies the selection, not the cursor position.
The patch in bug 148144 will add, among other things, gtk_icon_view_set_cursor() 
Comment 2 Matthias Clasen 2005-05-02 20:38:16 UTC
Reopen if gtk_icon_view_set_cursor() is not suitable for your needs.