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 761971 - Bring the tutorial up to date with clutter 1.24
Bring the tutorial up to date with clutter 1.24
Status: RESOLVED WONTFIX
Product: cluttermm_tutorial
Classification: Other
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: cluttermm_tutorial-maint
cluttermm_tutorial-maint
Depends on:
Blocks:
 
 
Reported: 2016-02-12 20:10 UTC by Ian Martin
Modified: 2019-02-23 02:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
updates configure.ac to use c++11; subdir-objects no longer works. (1.92 KB, patch)
2016-02-12 20:10 UTC, Ian Martin
needs-work Details | Review
Updates Makefile.am (4.50 KB, patch)
2016-02-12 20:15 UTC, Ian Martin
needs-work Details | Review
Updates stage example (927 bytes, patch)
2016-02-12 20:16 UTC, Ian Martin
committed Details | Review
Removes a m4 file that is no longer used (4.22 KB, patch)
2016-02-12 20:18 UTC, Ian Martin
committed Details | Review
Updates the stage widget(embed) example (1.99 KB, patch)
2016-02-12 20:19 UTC, Ian Martin
needs-work Details | Review
Updates the manual. (6.88 KB, patch)
2016-02-12 20:19 UTC, Ian Martin
needs-work Details | Review
Actor example now works (2.21 KB, patch)
2016-02-12 20:20 UTC, Ian Martin
none Details | Review
Repair of the actor transformations example from the manual. (3.01 KB, patch)
2016-02-12 20:20 UTC, Ian Martin
committed Details | Review
Adds another transformation example (1.29 KB, patch)
2016-02-12 20:22 UTC, Ian Martin
needs-work Details | Review
Manual update (8.33 KB, patch)
2016-02-12 20:23 UTC, Ian Martin
none Details | Review

Description Ian Martin 2016-02-12 20:10:43 UTC
Created attachment 321024 [details] [review]
updates configure.ac to use c++11; subdir-objects no longer works.

A number of updates:
All of the examples failed to compile due to using deprecated API
The tutorial documentation is based on the previous model of Clutter; it now has the Actor as the central container and object.  Numerous updates required to reflect this.
Comment 1 Ian Martin 2016-02-12 20:15:49 UTC
Created attachment 321025 [details] [review]
Updates Makefile.am

With the configure.ac patch, build proceeds.  
These two patches do create the examples in the parent directory.  I was unable to get subdir-objects to create the children in their own directory (this is a non-recursive Makefile); while this is a regression, I couldn't solve it quickly, and a suboptimal outcome that builds beats FTB code IMHO.

This also comments out all the examples; every one of them uses deprecated API and needs updating.  I've chosen to do this as a series of patches that update each one in turn, with the manual updated alongside.
Comment 2 Ian Martin 2016-02-12 20:16:23 UTC
Created attachment 321026 [details] [review]
Updates stage example
Comment 3 Ian Martin 2016-02-12 20:18:32 UTC
Created attachment 321027 [details] [review]
Removes a m4 file that is no longer used

this removes a dk_warn.m4 file; I believe its been superseded by MM_WARNINGS.
Comment 4 Ian Martin 2016-02-12 20:19:06 UTC
Created attachment 321028 [details] [review]
Updates the stage widget(embed) example
Comment 5 Ian Martin 2016-02-12 20:19:36 UTC
Created attachment 321029 [details] [review]
Updates the manual.
Comment 6 Ian Martin 2016-02-12 20:20:01 UTC
Created attachment 321030 [details] [review]
Actor example now works
Comment 7 Ian Martin 2016-02-12 20:20:43 UTC
Created attachment 321031 [details] [review]
Repair of the actor transformations example from the manual.
Comment 8 Ian Martin 2016-02-12 20:22:48 UTC
Created attachment 321032 [details] [review]
Adds another transformation example

This is rather larger than most examples; I've added it in not only for the coding, but because I find it useful to be able to see how the different transformations interact with each other.
Comment 9 Ian Martin 2016-02-12 20:23:23 UTC
Created attachment 321033 [details] [review]
Manual update
Comment 10 Murray Cumming 2016-02-24 13:51:48 UTC
Review of attachment 321027 [details] [review]:

This should be squashed together with the commit that changes the macro that is used in configure.ac.
Comment 11 Murray Cumming 2016-02-24 14:00:42 UTC
Comment on attachment 321027 [details] [review]
Removes a m4 file that is no longer used

I have committed the change of macro use as one small commit.
Comment 12 Murray Cumming 2016-02-24 14:01:36 UTC
Review of attachment 321024 [details] [review]:

I have the change of warning macro, and the use of C++11, as separate commits.
Comment 13 Murray Cumming 2016-02-24 14:02:50 UTC
Review of attachment 321025 [details] [review]:

I guess this might be meant to be in the same commit as the configure.ac change. But please keep the general build changes separate from the addition of source files. And please don't change the variable names unnecessarily.
Comment 14 Murray Cumming 2016-02-24 14:03:59 UTC
Comment on attachment 321026 [details] [review]
Updates stage example

Pushed, with a slightly improved commit message.
Comment 15 Murray Cumming 2016-02-24 14:05:59 UTC
Review of attachment 321028 [details] [review]:

Can we just have the fix for the example without the intermediate removal of the example from the build?
Comment 16 Murray Cumming 2016-02-24 19:51:21 UTC
Comment on attachment 321031 [details] [review]
Repair of the actor transformations example from the manual.

I have pushed this without the Makefile.am changes. The change to the set_size() call should really have some explanation in the commit message.
Comment 17 Murray Cumming 2016-02-24 20:01:16 UTC
(In reply to Murray Cumming from comment #15)
> Can we just have the fix for the example without the intermediate removal of
> the example from the build?

And the commit message should say why the change was made, please.
Comment 18 Murray Cumming 2016-02-24 20:04:25 UTC
Review of attachment 321029 [details] [review]:

This seems to contain many whitespace changes. Please separate these so the actual content changes are in a separate commit.

And the commit message should describe the changes, at least briefly.
Comment 19 Murray Cumming 2016-02-24 20:05:19 UTC
Review of attachment 321032 [details] [review]:

I think you forgot to "git add" the actual new source file.
Comment 20 Ian Martin 2016-03-04 19:15:14 UTC
(In reply to Murray Cumming from comment #13)
> Review of attachment 321025 [details] [review] [review]:
> 
> I guess this might be meant to be in the same commit as the configure.ac
> change. But please keep the general build changes separate from the addition
> of source files. And please don't change the variable names unnecessarily.

I added nobase because as it stands the Makefile was placing the output in the projects base directory, and I wanted them to remain in the directory their input files were contained in.
Comment 21 André Klapper 2018-08-17 20:00:06 UTC
If this is still an issue it should probably be transferred to https://gitlab.gnome.org/GNOME/cluttermm as we're going to shutdown GNOME Bugzilla.
Comment 22 André Klapper 2019-02-23 02:46:16 UTC
Closing per last comment.