Skip to content

Commit

Permalink
feat: Show libchewing runtime version in setup about page
Browse files Browse the repository at this point in the history
  • Loading branch information
kanru committed Jul 20, 2024
1 parent b9ca1da commit c2737b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ target_compile_definitions(ibus-setup-chewing PRIVATE
LOCALEDIR="${CMAKE_INSTALL_FULL_LOCALEDIR}"
)
target_include_directories(ibus-setup-chewing PRIVATE setup)
target_link_libraries(ibus-setup-chewing PkgConfig::LIBADWAITA)
target_link_libraries(ibus-setup-chewing
PkgConfig::LIBADWAITA
PkgConfig::CHEWING
)

add_executable(ibus-engine-chewing
ibus-chewing-engine.c
Expand Down
3 changes: 2 additions & 1 deletion src/setup/ibus-setup-chewing-about.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include "ibus-setup-chewing-about.h"

#include <chewing/chewing.h>
#include <glib/gi18n.h>
#include <stdio.h>

Expand All @@ -36,7 +37,7 @@ static char *generate_debug_info(void) {
QUOTE_ME(CHEWING_VERSION));

g_string_append(string, "\nRunning against:\n");
g_string_append_printf(string, "- libchewing: n/a\n");
g_string_append_printf(string, "- libchewing: %s\n", chewing_version());

g_string_append(string, "\n");
{
Expand Down

0 comments on commit c2737b8

Please sign in to comment.