WWW-www.enlightenment.org pushed a commit to branch master. http://git.enlightenment.org/website/www-content.git/commit/?id=286c6bfca70bf9940c7709935c21a0ed675276d3
commit 286c6bfca70bf9940c7709935c21a0ed675276d3 Author: Vincent Torri <[email protected]> Date: Mon Apr 19 11:21:15 2021 -0700 Wiki page hello-world-gui.md changed with summary [remove unnecessary headers, addd a comment about Efl_Ui.h] by Vincent Torri --- pages/develop/tutorials/c/hello-world-gui.md.txt | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/pages/develop/tutorials/c/hello-world-gui.md.txt b/pages/develop/tutorials/c/hello-world-gui.md.txt index dd6c89bf9..5330104d3 100644 --- a/pages/develop/tutorials/c/hello-world-gui.md.txt +++ b/pages/develop/tutorials/c/hello-world-gui.md.txt @@ -18,7 +18,6 @@ As you'll be building on the code from the prior tutorial, take a look at the pr ```c #define EFL_BETA_API_SUPPORT 1 -#include <Eina.h> #include <Efl_Core.h> EAPI_MAIN void @@ -69,13 +68,11 @@ Instead of printing to the command line, this time your message will be displaye Technically you could put all the code for opening the window, text boxes, buttons and so on into the main function which previously contained the lines you just deleted but that's messy. In general it's much better and cleaner to use the main function to call other functions. -Create a function to set up your window and name it ``_gui_setup()``. Insert a call to the function from within the main EFL loop. Your program should look like this: +Create a function to set up your window and name it ``_gui_setup()``. Insert a call to the function from within the main EFL loop. Also include ``Efl_Ui.h`` instead of ``Efl_Core.h`` to include all the necessary UI code. Your program should look like this: ```c #define EFL_BETA_API_SUPPORT 1 -#include <Eina.h> -#include <Elementary.h> #include <Efl_Ui.h> @@ -121,8 +118,6 @@ Your program will now look like this: ```c #define EFL_BETA_API_SUPPORT 1 -#include <Eina.h> -#include <Elementary.h> #include <Efl_Ui.h> @@ -202,8 +197,6 @@ Your program should now look like this: ```c #define EFL_BETA_API_SUPPORT 1 -#include <Eina.h> -#include <Elementary.h> #include <Efl_Ui.h> static void @@ -350,8 +343,6 @@ If you use ``0.5, 0.5``, the text will be centered. Take a look at [the complete ```c #define EFL_BETA_API_SUPPORT 1 -#include <Eina.h> -#include <Elementary.h> #include <Efl_Ui.h> static void --
