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 573164 - Use motion hints correctly; update column width on ButtonRelease
Use motion hints correctly; update column width on ButtonRelease
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
2.15.x
Other All
: Normal normal
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on:
Blocks: motion-event-tracker
 
 
Reported: 2009-02-25 18:20 UTC by Federico Mena Quintero
Modified: 2018-02-10 04:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Federico Mena Quintero 2009-02-25 18:20:02 UTC
gtk_tree_view_motion_resize_column() does this:
  if (event->is_hint || event->window != widget->window)
    gtk_widget_get_pointer (widget, &x, NULL);
  else
    x = event->x;

That's wrong; with is_hint events it should use the event's coordinates and call gdk_event_request_motions() at the end.  (Or for the case where the windows don't match (do they actually not?), it should translate the event's coordinates to be with respect to the appropriate window.)

Also, when the mouse is released to end resizing a column, the code doesn't update the column width with respect to the ButtonRelease event's coordinates.  It should do that instead of assuming that the last motion event provided the final coordinates.
Comment 1 Matthias Clasen 2018-02-10 04:33:07 UTC
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and
still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue
for it.