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.
This commit is contained in:
parent
0a23c904cb
commit
b8fd0c3b74
|
@ -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…
Reference in New Issue