fix glib module, introduced pointers in order to allow gjs object mapping#11
fix glib module, introduced pointers in order to allow gjs object mapping#11danigm merged 2 commits intoendlessm:masterfrom
Conversation
|
I don't recognize the submitter as a member of @endlessm. Can somebody in @endlessm verify the patch? See https://phabricator.endlessm.com/w/software/build/ci-integration/#pull-requests for more details. |
|
ok to test |
|
I've been using the patches from @hermes83 for the last month or so and everything seems OK. |
danigm
left a comment
There was a problem hiding this comment.
I see here some mix of tabs and spaces for the indentation. Please, fix that and use only spaces, it's better because it'll be shown the same result no matter what tab space configuration do you have on your code editor.
There are also some trailing white-spaces. Please, try to remove them to avoid introduce not needed characters.
And about the commit message, try to be more descriptive about the changes done and the motivations, this is a good read: https://chris.beams.io/posts/git-commit/
| reinterpret_cast <AnimationWobblyModelPrivate *> (animation_wobbly_model_get_instance_private (model)); | ||
|
|
||
| priv->prop_size = size; | ||
| priv->prop_size = {size->x, size->y}; |
There was a problem hiding this comment.
Remove this trailing whitespaces
| AnimationVector pos = { 0.0, 0.0 }; | ||
| AnimationVector size = { 100.0, 100.0 }; | ||
|
|
||
| g_autoptr(AnimationWobblyModel) model = animation_wobbly_model_new (&pos, | ||
| &size, |
There was a problem hiding this comment.
Here there's a mix of spaces and tabs for indent. Use only spaces to avoid wrong presentation. For example in the PR review of gitlab you can see that the indentation is not the same for these lines.
| AnimationVector pos = { 0.0, 0.0 }; | ||
| AnimationVector size = { 100.0, 100.0 }; | ||
| g_autoptr(AnimationWobblyModel) model = animation_wobbly_model_new (&pos, | ||
| &size, |
| AnimationVector pos_to = { 1.0, 1.0 }; | ||
|
|
| AnimationVector pos = { 0.0, 0.0 }; | ||
| AnimationVector size = { 100.0, 100.0 }; |
| std::array <AnimationVector, 4> extremes; | ||
|
|
||
| animation_wobbly_model_resize (model, { 200.0, 200.0 }); | ||
| AnimationVector resize_dimensions = { 200.0, 200.0 }; |
| AnimationVector pos = { 0.0, 0.0 }; | ||
| AnimationVector size = { 100.0, 100.0 }; |
|
|
||
| AnimationVector grab_pos = { 100.0, 0.0 }; | ||
| g_autoptr(AnimationWobblyAnchor) anchor = animation_wobbly_model_grab_anchor (model, &grab_pos); | ||
|
|
||
| animation_wobbly_anchor_move_by (anchor, { 10.0, 10.0 }); | ||
| AnimationVector delta_pos = { 10.0, 10.0 }; | ||
| animation_wobbly_anchor_move_by (anchor, &delta_pos); |
There was a problem hiding this comment.
spaces vs tabs again, and trailing whitespaces.
| AnimationVector pos = { 0.0, 0.0 }; | ||
| AnimationVector size = { 100.0, 100.0 }; | ||
| g_autoptr(AnimationWobblyModel) model = animation_wobbly_model_new (&pos, | ||
| &size, | ||
| 8.0, | ||
| 5.0, | ||
| 500.0); | ||
| g_autoptr(AnimationWobblyAnchor) anchor = animation_wobbly_model_grab_anchor (model, { 100.0, 0.0 }); | ||
|
|
||
| AnimationVector grab_pos = { 100.0, 0.0 }; | ||
| g_autoptr(AnimationWobblyAnchor) anchor = animation_wobbly_model_grab_anchor (model, &grab_pos); | ||
|
|
||
| /* Move anchor and settle */ | ||
| animation_wobbly_anchor_move_by (anchor, { 10.0, 10.0 }); | ||
| // Move anchor and settle | ||
| AnimationVector delta_pos = { 10.0, 10.0 }; | ||
| animation_wobbly_anchor_move_by (anchor, &delta_pos); |
There was a problem hiding this comment.
spaces vs tabs again, and trailing whitespaces.
0d10488 to
65b81fc
Compare
65b81fc to
ae7b955
Compare
danigm
left a comment
There was a problem hiding this comment.
Looks good to me. Let's merge this.
This patch updates the version number and api version for the project and all debian packages. The commits added in this PR #11 break the ABI so we need to bump the soname. https://phabricator.endlessm.com/T30737
In order to use the library within gnome shell extensions, the parameters must be pointers
https://phabricator.endlessm.com/T30439