WWW-www.enlightenment.org pushed a commit to branch master.

http://git.enlightenment.org/website/www-content.git/commit/?id=648daa4bdb9ba64519c2df994d28342669fd284e

commit 648daa4bdb9ba64519c2df994d28342669fd284e
Author: james ellis osborne iii <[email protected]>
Date:   Wed Aug 1 11:54:55 2018 -0700

    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
---
 pages/develop/e/sandbox_gadgets.md.txt | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

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)
 }
 ```
 
+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.
+
 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.
 
 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
 
 ```c
 #include <Elementary.h>
-#include <enlightenment/e_gadget_types.h>
+#include <e_gadget_types.h>
 
 static E_Gadget_Site_Orient gorient;
 static E_Gadget_Site_Anchor ganchor;

-- 


Reply via email to