Commit Graph

6 Commits

Author SHA1 Message Date
Přemysl Eric Janouch 82accaf200
sdgui: make Page Up/Down scroll the view 2021-10-20 09:15:06 +02:00
Přemysl Eric Janouch c364ec3b81
sdgui: stop hardcoding cell side padding 2021-10-17 11:18:29 +02:00
Přemysl Eric Janouch a31d329754
sdgui: stop hardcoding colours
Reusing colours from sdtui configuration would be awkward
and complicated, e.g. with font attributes, so abandon that idea.
2021-10-17 09:37:32 +02:00
Přemysl Eric Janouch 8fb2ce29cf
sdgui: clean up scrolling code 2021-10-15 23:59:45 +02:00
Přemysl Eric Janouch ce92a23551
sdgui: scroll by three rows
Don't use an arbitrary amount of pixels, base it off the font.
2021-10-15 23:09:26 +02:00
Přemysl Eric Janouch 9d7bc2a839
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.
2021-10-15 11:46:09 +02:00