diff options
author | Rusty Lynch <rusty.lynch@intel.com> | 2013-03-06 15:12:35 -0800 |
---|---|---|
committer | Rusty Lynch <rusty.lynch@intel.com> | 2013-03-06 15:22:12 -0800 |
commit | b55a96b30c51508a059bd8cd2ab013beaa9ceca1 (patch) | |
tree | b4fe43fdc321e7593975f76ff5c9b50116976293 | |
parent | c9706c5742933798d11052a0ac60e61eb04c5fed (diff) | |
download | webskeleton-b55a96b30c51508a059bd8cd2ab013beaa9ceca1.tar.gz webskeleton-b55a96b30c51508a059bd8cd2ab013beaa9ceca1.tar.bz2 webskeleton-b55a96b30c51508a059bd8cd2ab013beaa9ceca1.zip |
Fix crasher bug by initializing elementary
After updating webkit-efl, this app started to segfault in
elm_config_mirrored_get(). By calling elm_init() at the start
of the app then we no longer see this crash.
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | packaging/webskeleton.spec | 1 | ||||
-rw-r--r-- | webskeleton.c | 2 |
3 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,5 @@ webskeleton: webskeleton.c - gcc -o webskeleton webskeleton.c `pkg-config --cflags --libs ecore ecore-evas evas eina ewebkit2` + gcc -o webskeleton webskeleton.c `pkg-config --cflags --libs ecore ecore-evas evas eina ewebkit2 elementary` install: webskeleton mkdir -p ${DESTDIR}/usr/bin diff --git a/packaging/webskeleton.spec b/packaging/webskeleton.spec index 2a86a56..463028a 100644 --- a/packaging/webskeleton.spec +++ b/packaging/webskeleton.spec @@ -13,6 +13,7 @@ BuildRequires: pkgconfig(ecore) BuildRequires: pkgconfig(evas) BuildRequires: pkgconfig(eina) BuildRequires: pkgconfig(ewebkit2) +BuildRequires: pkgconfig(elementary) %description Webskeleton application container diff --git a/webskeleton.c b/webskeleton.c index fb3ec96..394edff 100644 --- a/webskeleton.c +++ b/webskeleton.c @@ -208,6 +208,8 @@ int main(int argc, char *argv[]) if (!ecore_evas_init()) return EXIT_FAILURE; + if (!elm_init()) + return EXIT_FAILURE; static struct option options[] = { { "help", no_argument, NULL, 'h' }, |