GNOME Bugzilla – Bug 684980
Improve the appearance of the dragged header
Last modified: 2012-10-22 23:22:48 UTC
Currently, dragging a header to reorder columns has the effect of moving the header itself below the header line, which looks wrong.
Created attachment 225270 [details] [review] treeview: Move the dragged header in the headers window
Created attachment 225271 [details] [review] treeview: Add support for styling the dragged header
Corresponding patch for gnome-themes-standard at bug 684982
Cosimo, can you look at this ?
Review of attachment 225270 [details] [review]: I don't know about this; the patch itself looks good, but it causes problems when dragging the last column in a view, which will tipycally be expanded, so its header would be bigger than all the others and would cover them completely while dragging; to understand what I mean, take testtreecolumns from tests/ and add e.g. 5 columns to one window, then try to drag the rightmost column in that window. Maybe it's better if we make the column header freely draggable around instead? Also, man are those vertical arrows on DnD ugly :)
Review of attachment 225270 [details] [review]: Uhm, I see you solved this problem in the theme using transparency instead - that's also a valid solution. I think we should probably do this then.
Review of attachment 225271 [details] [review]: ::: gtk/gtktreeview.c @@ +9812,3 @@ + context = gtk_widget_get_style_context (button); + gtk_style_context_add_class (context, STYLE_CLASS_DRAGGED_HEADER); Can you use GTK_STYLE_CLASS_DND for this?
I'd rather land this after the 3.6 branchpoint in any case.
Pushed both of these, with GTK_STYLE_CLASS_DND instead of STYLE_CLASS_DRAGGED_HEADER