forked from enlightenment/efl
Don't include Edje_Edit.h in edje_private.h and make it obvious at compile time that this API is not meant to be used outside of editors.
SVN revision: 52593
This commit is contained in:
parent
79f5d9f04d
commit
14187a92d3
|
@ -1,6 +1,10 @@
|
||||||
#ifndef _EDJE_EDIT_H
|
#ifndef _EDJE_EDIT_H
|
||||||
#define _EDJE_EDIT_H
|
#define _EDJE_EDIT_H
|
||||||
|
|
||||||
|
#ifndef EDJE_EDIT_IS_UNSTABLE_AND_I_KNOW_ABOUT_IT
|
||||||
|
#error "Do not use the Edje_Edit API unless you know what you are doing. It's meant only for writing editors and nothing else."
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <Edje.h>
|
#include <Edje.h>
|
||||||
|
|
||||||
#ifdef EAPI
|
#ifdef EAPI
|
||||||
|
|
|
@ -30,6 +30,9 @@
|
||||||
|
|
||||||
#include "edje_private.h"
|
#include "edje_private.h"
|
||||||
|
|
||||||
|
#define EDJE_EDIT_IS_UNSTABLE_AND_I_KNOW_ABOUT_IT
|
||||||
|
#include "Edje_Edit.h"
|
||||||
|
|
||||||
static const char EDJE_EDIT_ERROR_GROUP_CURRENTLY_USED_STR[] = "Current group cannot be deleted";
|
static const char EDJE_EDIT_ERROR_GROUP_CURRENTLY_USED_STR[] = "Current group cannot be deleted";
|
||||||
static const char EDJE_EDIT_ERROR_GROUP_REFERENCED_STR[] = "Group still in use";
|
static const char EDJE_EDIT_ERROR_GROUP_REFERENCED_STR[] = "Group still in use";
|
||||||
static const char EDJE_EDIT_ERROR_GROUP_DOES_NOT_EXIST_STR[] = "Group does not exist";
|
static const char EDJE_EDIT_ERROR_GROUP_DOES_NOT_EXIST_STR[] = "Group does not exist";
|
||||||
|
|
|
@ -35,7 +35,6 @@ void *alloca (size_t);
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
#include "Edje.h"
|
#include "Edje.h"
|
||||||
#include "Edje_Edit.h"
|
|
||||||
|
|
||||||
#include <lua.h>
|
#include <lua.h>
|
||||||
#include <lualib.h>
|
#include <lualib.h>
|
||||||
|
|
Loading…
Reference in New Issue