aboutsummaryrefslogtreecommitdiff
path: root/src/stardict-view.c
Commit message (Collapse)AuthorAgeFilesLines
* sdgui: make Page Up/Down scroll the viewPřemysl Eric Janouch2021-10-201-0/+21
|
* sdgui: stop hardcoding cell side paddingPřemysl Eric Janouch2021-10-171-20/+40
|
* sdgui: stop hardcoding coloursPřemysl Eric Janouch2021-10-171-13/+29
| | | | | Reusing colours from sdtui configuration would be awkward and complicated, e.g. with font attributes, so abandon that idea.
* sdgui: clean up scrolling codePřemysl Eric Janouch2021-10-151-61/+52
|
* sdgui: scroll by three rowsPřemysl Eric Janouch2021-10-151-14/+18
| | | | Don't use an arbitrary amount of pixels, base it off the font.
* sdgtk: add and use a custom listview widgetPřemysl Eric Janouch2021-10-151-0/+526
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.