diff options
author | james ellis osborne iii <jamesellis@twee.se> | 2018-08-01 11:54:55 -0700 |
---|---|---|
committer | apache <apache@e5-web1.enlightenment.org> | 2018-08-01 11:54:55 -0700 |
commit | 648daa4bdb9ba64519c2df994d28342669fd284e (patch) | |
tree | 414726791207eb220bf8c1c48478ddae48981713 /pages | |
parent | 9e7ff031a550c21381303191f06cc55802ad2298 (diff) |
Wiki page sandbox_gadgets.md changed with summary [added pkg-config compile line from hello world example using enlightenment instead of elementary. removed enlightenment dir from include path] by james ellis osborne iii
Diffstat (limited to 'pages')
-rw-r--r-- | pages/develop/e/sandbox_gadgets.md.txt | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/pages/develop/e/sandbox_gadgets.md.txt b/pages/develop/e/sandbox_gadgets.md.txt index 51b2f4bc6..28e968b08 100644 --- a/pages/develop/e/sandbox_gadgets.md.txt +++ b/pages/develop/e/sandbox_gadgets.md.txt | |||
@@ -81,6 +81,20 @@ elm_main(int argc, char **argv) | |||
81 | } | 81 | } |
82 | ``` | 82 | ``` |
83 | 83 | ||
84 | Compile it (and other examples on this page) with: | ||
85 | |||
86 | cc example.c -o example `pkg-config --cflags --libs enlightenment` | ||
87 | |||
88 | If ''pkg-config'' is complaining about not finding Elementary you may | ||
89 | want to adjust your ''PKG_CONFIG_PATH'' environment variable to point | ||
90 | to where the ''.pc'' files are installed. Perhaps like: | ||
91 | |||
92 | export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH | ||
93 | |||
94 | Please see this nice page | ||
95 | [[http://people.freedesktop.org/~dbn/pkg-config-guide.html|about pkg-config]] | ||
96 | Which should tell you what it is and how it works if you are having trouble. | ||
97 | |||
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. | 98 | 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. |
85 | 99 | ||
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. | 100 | 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. |
@@ -110,7 +124,7 @@ For the purpose of the Hello World gadget, a label detailing the anchor position | |||
110 | 124 | ||
111 | ```c | 125 | ```c |
112 | #include <Elementary.h> | 126 | #include <Elementary.h> |
113 | #include <enlightenment/e_gadget_types.h> | 127 | #include <e_gadget_types.h> |
114 | 128 | ||
115 | static E_Gadget_Site_Orient gorient; | 129 | static E_Gadget_Site_Orient gorient; |
116 | static E_Gadget_Site_Anchor ganchor; | 130 | static E_Gadget_Site_Anchor ganchor; |