aboutsummaryrefslogtreecommitdiff
path: root/README.adoc
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2018-09-22 14:09:42 +0200
committerPřemysl Janouch <p@janouch.name>2018-09-23 06:38:03 +0200
commit942bda7db4b7b9e5bae6ad1ad81295b1f346a9f6 (patch)
tree2602530b371ee3449bfc9233709bb6fe9f82e5fa /README.adoc
parentb0d3b2dcb5c02fedb0f4d95e8337f7829015a7bd (diff)
downloadtdv-942bda7db4b7b9e5bae6ad1ad81295b1f346a9f6.tar.gz
tdv-942bda7db4b7b9e5bae6ad1ad81295b1f346a9f6.tar.xz
tdv-942bda7db4b7b9e5bae6ad1ad81295b1f346a9f6.zip
Use XCB and SelectSelectionInput instead of GTK+
As it happens, there is no real need to constantly poll for changes, since XFixes can inform us of updates as they happen. With GTK+ gone we've got dependencies and error handling under control. XCB is a truly awful thing to learn, though. Our method will never work on Wayland or Windows, so we don't miss out on anything by abandoning the huge toolkit.
Diffstat (limited to 'README.adoc')
-rw-r--r--README.adoc8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.adoc b/README.adoc
index 3cbd303..cfad569 100644
--- a/README.adoc
+++ b/README.adoc
@@ -7,7 +7,7 @@ dictionary software of this kind, GUI or not, and thus decided to write my own.
The project is covered by a permissive license, unlike vast majority of other
similar projects, and can serve as a base for implementing other dictionary
-software. I wasn't able to reuse _anything_.
+software. I wasn't able to reuse _anything_ for StarDict.
Further Development
-------------------
@@ -32,12 +32,12 @@ Building and Running
--------------------
Build dependencies: CMake, pkg-config, xsltproc, docbook-xsl +
Runtime dependencies: ncursesw, zlib, ICU, termo (included),
- glib-2.0, pango, gtk+ (optional, any version)
+ glib-2.0, pango, xcb and xcb-xfixes (optional)
$ git clone --recursive https://git.janouch.name/p/sdtui.git
$ mkdir sdtui/build
$ cd sdtui/build
- $ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug -DWITH_GTK=ON
+ $ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug -DWITH_X11=ON
$ make
To install the application, you can do either the usual:
@@ -85,7 +85,7 @@ odd = 16 255
The `watch-selection` option makes the application watch the X11 primary
selection for changes and automatically search for selected text.
-This feature requires GTK+ and it will never work on Wayland by its design.
+This feature requires XCB and it will never work on Wayland by its design.
You can also set up some dictionaries to be loaded at startup automatically: