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. --- src/stardict.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/stardict.h') 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 -- cgit v1.2.3-70-g09d2