Adapt examples to latest Unified API changes

Efl.Ui.Text headers have to be manually included for now, since they still depend
on Legacy headers.
Padding API has lost a parameter.
devs/lauromoura/csharp-mvvm
Xavi Artigas 3 years ago
parent 0a23c904cb
commit b8fd0c3b74
  1. 4
      apps/c/texteditor/src/texteditor_main.c
  2. 4
      reference/c/ui/src/focus_main.c
  3. 5
      reference/c/ui/src/ui_container.c
  4. 2
      reference/csharp/ui/src/ui_container.cs
  5. 4
      tutorial/c/hello-gui/src/gui_main.c

@ -1,8 +1,10 @@
#define EFL_BETA_API_SUPPORT 1
#include <Eina.h>
#include <Elementary.h>
#include <Efl_Ui.h>
// Temporary workaround until Unified Text stops using Legacy classes internally
#include <efl_ui_text.eo.h>
#include <efl_text_interactive.eo.h>
Efl_Ui_Text *_editor;
Efl_Ui_Button *_toolbar_new;

@ -1,8 +1,10 @@
#define EFL_BETA_API_SUPPORT 1
#include <Eina.h>
#include <Elementary.h>
#include <Efl_Ui.h>
// Temporary workaround until Unified Text stops using Legacy classes internally
#include <efl_ui_text.eo.h>
#include <efl_text_interactive.eo.h>
static void
_gui_about_clicked_cb(void *data EINA_UNUSED, const Efl_Event *event EINA_UNUSED)

@ -1,8 +1,9 @@
#define EFL_BETA_API_SUPPORT 1
#include <Eina.h>
#include <Elementary.h>
#include <Efl_Ui.h>
// Temporary workaround until Unified Text stops using Legacy classes internally
#include <efl_ui_text.eo.h>
/*
* Efl.UI container exmaples.
@ -61,7 +62,7 @@ _ui_boxes_setup(Efl_Ui_Win *win)
int i;
box = efl_add(EFL_UI_BOX_CLASS, win,
efl_gfx_arrangement_content_padding_set(efl_added, 5, 0, EINA_TRUE));
efl_gfx_arrangement_content_padding_set(efl_added, 5, 0));
for (i = 1; i <= 4; i++)
{

@ -14,7 +14,7 @@ public class Example : Efl.Csharp.Application
{
Efl.Ui.Box box = new Efl.Ui.Box(win);
// Set distance between contained elements
box.SetContentPadding(5, 0, true);
box.SetContentPadding(5, 0);
for (int i = 1; i <= 4; ++i)
{

@ -1,8 +1,10 @@
#define EFL_BETA_API_SUPPORT 1
#include <Eina.h>
#include <Elementary.h>
#include <Efl_Ui.h>
// Temporary workaround until Unified Text stops using Legacy classes internally
#include <efl_ui_text.eo.h>
#include <efl_text_interactive.eo.h>
static void
_gui_quit_cb(void *data EINA_UNUSED, const Efl_Event *event EINA_UNUSED)

Loading…
Cancel
Save