GNOME Bugzilla – Bug 726676
More GtkStack transition counterparts of OVER_UP_DOWN
Last modified: 2014-05-02 21:16:54 UTC
Created attachment 272352 [details] Minor refactor patch Here's a patch that adds the three counterparts of GTK_STACK_TRANSITION_TYPE_OVER_UP_DOWN: OVER_DOWN_UP, OVER_LEFT_RIGHT, and OVER_RIGHT_LEFT. I'd guess this is for 3.14 since API is frozen for 3.12, but I split it out into two patches: one refactor to increase readability when adding more stack transition types (which I'd like to do at some point) and one to add the actual new API. The refactor patch could go in if there's still time before the code freeze.
Created attachment 272353 [details] [review] New stack transitions
Do you have a concrete use case for these new modes ? I don't want to keep adding more modes just 'for completeness'
I'd want to use OVER_LEFT_RIGHT for a "page"-type situation, where "turning the page" makes the widget slide off to the right, revealing the next widget which is stationary, and turning the page backwards does the opposite, so that pages appear to be stacked in order. The left-to-right direction fits more with the idea of "pages" than the up-down direction does. I think if you have OVER_UP_DOWN and OVER_LEFT_RIGHT you might as well have the other two, but I do at least have a direct need for OVER_LEFT_RIGHT.
Review of attachment 272353 [details] [review]: ok. will have to wait until we branch
Review of attachment 272353 [details] [review]: Could your rebase this patch ? It doesn't apply cleanly anymore
Created attachment 275574 [details] [review] Minor refactor patch
Created attachment 275575 [details] [review] New stack transitions Sure, here you go.
Review of attachment 275574 [details] [review]: nice
Review of attachment 275575 [details] [review]: ok