diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-07-09 20:18:01 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-10-15 11:46:09 +0200 |
commit | 9d7bc2a839b5f5200489a64c348acc02ee6ceb8f (patch) | |
tree | e4f0bcf6d5c4a10dd0457c294a462ab403a08458 /src/stardict.h | |
parent | f812fae922eec06235c9e566b78c7f0fb46a709b (diff) | |
download | tdv-9d7bc2a839b5f5200489a64c348acc02ee6ceb8f.tar.gz tdv-9d7bc2a839b5f5200489a64c348acc02ee6ceb8f.tar.xz tdv-9d7bc2a839b5f5200489a64c348acc02ee6ceb8f.zip |
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.
Diffstat (limited to 'src/stardict.h')
-rw-r--r-- | src/stardict.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stardict.h b/src/stardict.h index 5ebccde..85fd396 100644 --- a/src/stardict.h +++ b/src/stardict.h @@ -198,7 +198,7 @@ struct stardict_entry_field struct stardict_entry { GObject parent_instance; - GList * fields; ///< List of StardictEntryField's + GList * fields; ///< List of StardictEntryField-s }; struct stardict_entry_class @@ -209,4 +209,4 @@ struct stardict_entry_class GType stardict_entry_get_type (void); const GList *stardict_entry_get_fields (StardictEntry *sde) G_GNUC_PURE; - #endif // ! STARDICT_H +#endif // ! STARDICT_H |