diff options
author | Stephen M Houston <smhouston88@gmail.com> | 2018-08-02 07:36:17 -0700 |
---|---|---|
committer | apache <apache@e5-web1.enlightenment.org> | 2018-08-02 07:36:17 -0700 |
commit | a10c3ad16e1266d64a5213cb9a830519669b2cbf (patch) | |
tree | f51bf88efc7e194bd011b9146a395aa791530bb5 /pages | |
parent | a1aaac72afd1fc9aa676e5de23b81646713cf7d2 (diff) |
Wiki page sandbox_gadgets.md changed with summary [] by Stephen M Houston
Diffstat (limited to 'pages')
-rw-r--r-- | pages/develop/e/sandbox_gadgets.md.txt | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/pages/develop/e/sandbox_gadgets.md.txt b/pages/develop/e/sandbox_gadgets.md.txt index 5d6554d88..c8baf06d9 100644 --- a/pages/develop/e/sandbox_gadgets.md.txt +++ b/pages/develop/e/sandbox_gadgets.md.txt | |||
@@ -81,10 +81,6 @@ elm_main(int argc, char **argv) | |||
81 | } | 81 | } |
82 | ``` | 82 | ``` |
83 | 83 | ||
84 | Compile it (and other examples on this page) with: | ||
85 | |||
86 | <code>cc example.c -o example `pkg-config --cflags --libs enlightenment`</code> | ||
87 | |||
88 | 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. | 84 | 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. |
89 | 85 | ||
90 | If the id of the gadget is ``-1`` the application is being run in the "Add Gadget" popup. In this case the application displays an icon. If the ID of the gadget is not ``-1`` the application is being run as a gadget in a gadget site and the ID will be unique to this gadget. This is important for complex gadgets where the application would like to save settings or configurations and have them loaded after restarts. This unique ID is how the application will identify which settings to load. | 86 | If the id of the gadget is ``-1`` the application is being run in the "Add Gadget" popup. In this case the application displays an icon. If the ID of the gadget is not ``-1`` the application is being run as a gadget in a gadget site and the ID will be unique to this gadget. This is important for complex gadgets where the application would like to save settings or configurations and have them loaded after restarts. This unique ID is how the application will identify which settings to load. |