Wiki page sandbox_gadgets.md changed with summary [cleaned up compile line formatting] by james ellis osborne iii
This commit is contained in:
parent
648daa4bdb
commit
a1aaac72af
|
@ -83,17 +83,7 @@ elm_main(int argc, char **argv)
|
|||
|
||||
Compile it (and other examples on this page) with:
|
||||
|
||||
cc example.c -o example `pkg-config --cflags --libs enlightenment`
|
||||
|
||||
If ''pkg-config'' is complaining about not finding Elementary you may
|
||||
want to adjust your ''PKG_CONFIG_PATH'' environment variable to point
|
||||
to where the ''.pc'' files are installed. Perhaps like:
|
||||
|
||||
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
|
||||
|
||||
Please see this nice page
|
||||
[[http://people.freedesktop.org/~dbn/pkg-config-guide.html|about pkg-config]]
|
||||
Which should tell you what it is and how it works if you are having trouble.
|
||||
<code>cc example.c -o example `pkg-config --cflags --libs enlightenment`</code>
|
||||
|
||||
The variable ``gadget`` is used to determine if the application is running as a gadget or as a standalone application. The variable ``id_num`` is used to identify the ID of the gadget, if the application is indeed running as a gadget. If the application is running as a gadget, the window is set to alpha so that the background of the window does not show up. This is for aesthetics purposes so that gadgets on gadget sites don't all have a background.
|
||||
|
||||
|
|
Loading…
Reference in New Issue