From 9be11d94c663ea66cd41a9364a78531537ae405e Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Mon, 14 Jun 2021 23:08:17 +0200 Subject: Add ability to ellipsize dynamic menu item lengths. Plus making the maximum length of non-ellipsized strings configurable via GSettings. - data/org.ayatana.common.gschema.xml.in: Add file. - data/CMakeLists.txt: Add file. - CMakeLists.txt: Add gio-2.0 dependency + 'data' build folder. - src/utils.*: Add ayatana_common_utils_elipsize function + include glib-object.h and gio.h - tests/tst_utils.cpp: Add StringFunctionsTest. - tests/CMakeLists.txt: Add GLIB_LIBRARIES to target. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 7430e86..f2b4b50 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,6 +34,7 @@ include (FindPkgConfig) pkg_check_modules(GLIB REQUIRED glib-2.0>=2.36 + gio-2.0>=2.36 ) include_directories (${GLIB_INCLUDE_DIRS}) @@ -46,6 +47,7 @@ include_directories(${URLDISPATCHER_INCLUDE_DIRS}) set(CC_WARNING_ARGS " -Wall -pedantic -Wextra -Wno-missing-field-initializers") add_subdirectory(src) +add_subdirectory(data) if (ENABLE_TESTS) include(CTest) -- cgit v1.2.3