maemo.org Bugzilla – Bug 770
Maemo 2.0 Porting code examples do not work
Last modified: 2010-05-17 16:26:13 UTC
You need to
before you can comment on or make changes to this bug.
There are apparently some typos and small errors in the code examples in Maemo
2.0 Porting howto. It seems that no-one bothered to check if they even compile :(
For example, under "Hibernation":
> static void program_is_topmost_notify (GObject *self,
> GparamSpec *property_param, gpointer null)
> HildonProgram *program = HILDON_PROGRAM (self);
> if (hildon_program_get_is_topmost (program))
> hildon_program_set_can_hibernate (program, FALSE);
> hildon_program_set_can_hibernate (program, TRUE);
> g_signal_connect (G_OBJECT (program), "notify::is-topmost",
> G_CALLBACK (topmost-status-notify), NULL);
"GparamSpec" should be "GParamSpec" and the callback to connect should be
"program_is_topmost_notify" instead of "topmost-status-notify". There might be
more cases like this.
I suspect many people do copy-paste these snippets and it's irritating when the
provided examples have errors in them.
reaasigned to JP
Re-assigned to Mika.
Reassigning back to JP. This belongs to 2.0.
JP went through cleaning of 2.x docs. JP, is this issue solved now?
I cannot find the code sample quoted above in any of the 2.x docs, so I'm
closing this on the assumption that the docs have been cleaned.
I don't (yet) have a development environment to test the compilation of code
segments. If any are not compilable, please re-open, and I will get testing.
Moving Documentation component from maemo.org to Development Platform since the
bugs there refer to official developer documentation and this falls out of the
responsibility of the community.
Sorry for the noise, you can filter your bugmail by searching for this comment.
[Rearrangement of Documentation bug reports.]
Mass-moving old closed Developer Platform > Documentation tickets.
You can filter bugmail by searching for this comment.