From 9d7bc2a839b5f5200489a64c348acc02ee6ceb8f Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Fri, 9 Jul 2021 20:18:01 +0200 Subject: sdgtk: add and use a custom listview widget Nothing in GTK+ appears to be suited for what are virtually infinite lists. Our workaround with GtkLabel and GtkScrolledWindow has been heavily suboptimal and needs to be replaced. Use Pango directly to handle our relatively simple needs. Upgrades: - the widget can be scrolled, - keywords are repeated for each definition line, - definition lines are now wrapped, and support 'g' and 'x' fields. Downgrades: - text can no longer be selected, so far. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 1a8e100..f661cbc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -157,7 +157,9 @@ target_link_libraries (${PROJECT_NAME} ${project_common_libraries}) pkg_check_modules (gtk gtk+-3.0) if (gtk_FOUND) add_executable (sdgtk EXCLUDE_FROM_ALL - src/sdgtk.c ${project_common_sources}) + src/sdgtk.c + src/stardict-view.c + ${project_common_sources}) target_include_directories (sdgtk PUBLIC ${gtk_INCLUDE_DIRS}) target_link_libraries (sdgtk ${gtk_LIBRARIES} ${project_common_libraries}) endif () -- cgit v1.2.3-70-g09d2