autotools: fixed data installation directories.
|
@ -3,7 +3,7 @@ dnl Process this file with autoconf to produce a configure script.
|
|||
# get rid of that stupid cache mechanism
|
||||
rm -f config.cache
|
||||
|
||||
AC_INIT([elm_theme_viewer], [0.1.0], [seojuyung2@gmail.com])
|
||||
AC_INIT([elm-theme-viewer], [0.1.0], [seojuyung2@gmail.com])
|
||||
AC_PREREQ([2.60])
|
||||
AC_CONFIG_SRCDIR([configure.ac])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
|
@ -53,6 +53,8 @@ AC_CONFIG_FILES([
|
|||
Makefile
|
||||
src/Makefile
|
||||
data/Makefile
|
||||
data/images/Makefile
|
||||
data/themes/Makefile
|
||||
])
|
||||
|
||||
AC_OUTPUT
|
||||
|
|
|
@ -1,21 +1,3 @@
|
|||
MAINTAINERCLEANFILES = Makefile.in
|
||||
SUBDIRS = images themes
|
||||
|
||||
EDJE_CC = @edje_cc@
|
||||
EDJE_FLAGS_VERBOSE_ =
|
||||
EDJE_FLAGS_VERBOSE_0 =
|
||||
EDJE_FLAGS_VERBOSE_1 = -v
|
||||
EDJE_FLAGS = $(EDJE_FLAGS_$(V))
|
||||
|
||||
filesdir = $(pkgdatadir)/
|
||||
files_DATA = \
|
||||
layout.edj
|
||||
|
||||
EXTRA_DIST = layout.edc
|
||||
|
||||
layout.edj: Makefile layout.edc
|
||||
$(EDJE_CC) $(EDJE_FLAGS) \
|
||||
$(top_srcdir)/data/layout.edc \
|
||||
$(top_builddir)/data/layout.edj
|
||||
|
||||
clean-local:
|
||||
rm -f *.edj
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
MAINTAINERCLEANFILES = Makefile.in
|
||||
filesdir = $(pkgdatadir)/images
|
||||
files_DATA = \
|
||||
sky_01.jpg \
|
||||
sky_02.jpg \
|
||||
sky_03.jpg \
|
||||
sky_04.jpg
|
||||
|
||||
EXTRA_DIST = $(files_DATA)
|
Before Width: | Height: | Size: 132 KiB After Width: | Height: | Size: 132 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
@ -0,0 +1,21 @@
|
|||
MAINTAINERCLEANFILES = Makefile.in
|
||||
|
||||
EDJE_CC = @edje_cc@
|
||||
EDJE_FLAGS_VERBOSE_ =
|
||||
EDJE_FLAGS_VERBOSE_0 =
|
||||
EDJE_FLAGS_VERBOSE_1 = -v
|
||||
EDJE_FLAGS = $(EDJE_FLAGS_$(V))
|
||||
|
||||
filesdir = $(pkgdatadir)/themes
|
||||
files_DATA = \
|
||||
layout.edj
|
||||
|
||||
EXTRA_DIST = layout.edc
|
||||
|
||||
layout.edj: Makefile layout.edc
|
||||
$(EDJE_CC) $(EDJE_FLAGS) \
|
||||
$(top_srcdir)/data/themes/layout.edc \
|
||||
$(top_builddir)/data/themes/layout.edj
|
||||
|
||||
clean-local:
|
||||
rm -f *.edj
|
|
@ -262,6 +262,7 @@ void
|
|||
gui_create(const char *edje_file)
|
||||
{
|
||||
Evas_Object *o, *preview_frame;
|
||||
char path[PATH_MAX];
|
||||
|
||||
if (!edje_file) return;
|
||||
|
||||
|
@ -273,7 +274,8 @@ gui_create(const char *edje_file)
|
|||
evas_object_show(o);
|
||||
|
||||
gui_layout = o = elm_layout_add(win);
|
||||
elm_layout_file_set(o, "data/layout.edj", "etv/main/layout");
|
||||
snprintf(path, sizeof(path), "%s/themes/layout.edj", elm_app_data_dir_get());
|
||||
elm_layout_file_set(o, path, "etv/main/layout");
|
||||
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
elm_win_resize_object_add(win, o);
|
||||
evas_object_show(o);
|
||||
|
|