diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2014-03-28 21:37:12 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2014-03-28 21:37:12 +0200 |
commit | fa5546d7048880a3607b5055ba04e3d032d5ab0d (patch) | |
tree | 9875ca3fb9800c0b14f0cb68817d4f14e59105f9 /client | |
parent | c2adc3c7cf691230f0ad4697e2bbb0bcd24c6afe (diff) | |
parent | 908749cfdfa037b6f5fd0f5f7b2fa66080329156 (diff) | |
download | bemenu-fa5546d7048880a3607b5055ba04e3d032d5ab0d.tar.gz bemenu-fa5546d7048880a3607b5055ba04e3d032d5ab0d.tar.bz2 bemenu-fa5546d7048880a3607b5055ba04e3d032d5ab0d.zip |
Merge branch 'dev/code' into develop
Diffstat (limited to 'client')
-rw-r--r-- | client/CMakeLists.txt | 2 | ||||
-rw-r--r-- | client/client.c | 12 |
2 files changed, 10 insertions, 4 deletions
diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 91c4ea5..aceaaf5 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -1,6 +1,6 @@ # Sources SET(CLIENT_SOURCE client.c) -SET(CLIENT_INCLUDE) +SET(CLIENT_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/../lib") SET(CLIENT_LIBRARIES bemenu) # Warnings diff --git a/client/client.c b/client/client.c index de5468e..559651f 100644 --- a/client/client.c +++ b/client/client.c @@ -6,6 +6,7 @@ */ #include <stdlib.h> +#include <bemenu.h> /** * Main method @@ -20,9 +21,14 @@ int main(int argc, char **argv) { (void)argc, (void)argv; - /* - * code goes here - */ + bmMenu *menu = bmMenuNew(BM_DRAW_MODE_NONE); + + if (!menu) + return EXIT_FAILURE; + + bmMenuRender(menu); + + bmMenuFree(menu); return EXIT_SUCCESS; } |