aboutsummaryrefslogtreecommitdiff
path: root/src/stardict-view.c
Commit message (Collapse)AuthorAgeFilesLines
* sdgui: make Ctrl+click put hovered word in searchPřemysl Eric Janouch2022-09-031-124/+317
|
* sdgui: don't reload on size-allocatePřemysl Eric Janouch2022-09-031-2/+29
| | | | We could annoyingly get these events on window de/focus.
* sdgui: fix context menu item sensitivityPřemysl Eric Janouch2022-09-031-1/+1
|
* sdgui: support text selection in the viewPřemysl Eric Janouch2022-08-041-32/+401
| | | | | | | | | | | | This is generally an improvement over the initial GtkLabel approach: - Multiple definition lines can be selected at once. - The widget doesn't keep a selection caret around (which means it can't be controlled from the keyboard, a conscious trade-off). - Text doesn't needlessly go to PRIMARY immediately during selection, making it somewhat possible lift the self-exception for the PRIMARY selection watch. Closes #2
* sdgui: support touch screen dragging for the viewPřemysl Eric Janouch2022-07-241-0/+42
|
* sdgui: fix up the smooth scrolling commitPřemysl Eric Janouch2022-07-241-1/+2
|
* sdgui: use smooth scrollingPřemysl Eric Janouch2022-07-241-5/+9
|
* sdgui: add a file open dialog to the menuPřemysl Eric Janouch2021-10-231-2/+2
| | | | And remove the selection following checkbox from Windows builds.
* sdgui: avoid Pango markup for keywordsPřemysl Eric Janouch2021-10-201-23/+22
| | | | Sadly, there is no way to make this an improvement for the end user.
* sdgui: make an attempt at smooth scrollingPřemysl Eric Janouch2021-10-201-5/+7
|
* 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.