elm: fix location of legacy include for elm_code.
authorLauro Moura <lauromoura@expertisesolutions.com.br>
Wed, 7 Mar 2018 01:42:00 +0000 (17:42 -0800)
committerWonki Kim <wonki_.kim@samsung.com>
Tue, 10 Apr 2018 11:10:48 +0000 (20:10 +0900)
Summary:
Instead of including the legacy header on the main header, just include
it where it is actually used (diff_widget.c), like in elm_code_widget.c.

Test Plan: Try to compile edi with the tarball from `make dist`. It should not fail with elm_code related errors.

Reviewers: raster, stefan_schmidt, felipealmeida

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D5807

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
src/Makefile_Elementary.am
src/lib/elementary/elm_code.h
src/lib/elementary/elm_code_diff_widget.c

index bc3f68a..6bbde0b 100644 (file)
@@ -388,7 +388,6 @@ includesunstable_HEADERS = \
        lib/elementary/elm_code.h \
        lib/elementary/elm_code_widget_legacy.h \
        lib/elementary/elm_code_widget_selection.h \
-        lib/elementary/elm_code_widget_legacy.eo.h \
         lib/elementary/elm_code_diff_widget.h \
        lib/elementary/elm_code_common.h \
        lib/elementary/elm_code_line.h \
index 3a0887b..9ffd0e9 100644 (file)
@@ -11,7 +11,6 @@
 #include "elm_code_parse.h"
 #include "elm_code_syntax.h"
 #include "elm_code_widget.eo.h"
-#include "elm_code_widget_legacy.eo.h"
 #include "elm_code_widget_legacy.h"
 #include "elm_code_widget_selection.h"
 #include "elm_code_diff_widget.h"
index d8ec149..593f044 100644 (file)
@@ -5,6 +5,7 @@
 #include "Elementary.h"
 
 #include "elm_code_private.h"
+#include "elm_code_widget_legacy.eo.h"
 
 #define _ELM_CODE_DIFF_WIDGET_LEFT "diffwidgetleft"
 #define _ELM_CODE_DIFF_WIDGET_RIGHT "diffwidgetright"