Merge lp://qastaging/~compiz-team/compiz/compiz.animation-cleanup-04092012 into lp://qastaging/compiz/0.9.8

Proposed by Sam Spilsbury
Status: Merged
Approved by: Sam Spilsbury
Approved revision: 3337
Merged at revision: 3345
Proposed branch: lp://qastaging/~compiz-team/compiz/compiz.animation-cleanup-04092012
Merge into: lp://qastaging/compiz/0.9.8
Diff against target: 176 lines (+23/-21)
3 files modified
plugins/animation/include/animation/animation.h (+2/-2)
plugins/animation/src/animation.cpp (+14/-14)
plugins/animation/src/options.cpp (+7/-5)
To merge this branch: bzr merge lp://qastaging/~compiz-team/compiz/compiz.animation-cleanup-04092012
Reviewer Review Type Date Requested Status
jenkins (community) continuous-integration Approve
Daniel van Vugt Approve
Review via email: mp+122646@code.qastaging.launchpad.net

Commit message

Move statements to do with unminimize closer to their minimize counterparts,
express a function better by using constants rather than a compound statement.

Description of the change

Move statements to do with unminimize closer to their minimize counterparts, express a function better by using constants rather than a compound statement.

To post a comment you must log in.
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Missed two spots I can see:

const char *eventNames[AnimEventNum] =
{"Open", "Close", "Minimize", "Shade", "Unminimize", "Focus"};
                                       ^^^^^^^^^^^^

int customOptionOptionIds[AnimEventNum] =
{
    AnimationOptions::OpenOptions,
    AnimationOptions::CloseOptions,
    AnimationOptions::MinimizeOptions,
    AnimationOptions::ShadeOptions,
    AnimationOptions::UnminimizeOptions, <---------
    AnimationOptions::FocusOptions
};

review: Needs Fixing
Revision history for this message
Sam Spilsbury (smspillaz) wrote :

fixed.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

animation.cpp: Comment needs updating:

// Assumes events in the metadata are in
// [Open, Close, Minimize, Shade, Unminimize, Focus] order
// and effects among those are in alphabetical order
// but with "(Event) None" first and "(Event) Random" last.

review: Needs Fixing
Revision history for this message
Sam Spilsbury (smspillaz) wrote :

fixed.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I'm a little nervous that the entire contents of the branch changed 5 minutes ago in r3336, but it looks the same as before.

review: Approve
Revision history for this message
Unity Merger (unity-merger) wrote :
Revision history for this message
jenkins (martin-mrazik+qa) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches