sdgtk: write a custom list widget #1
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Nothing in GTK+ appears to be suited for what are virtually infinite lists. Our workaround with GtkLabel and GtkScrolledWindow is heavily suboptimal and needs to be replaced.
Use Pango directly to handle our relatively simple needs. Replicate the behaviour of sdtui when in doubt.
gdk_pango_layout_get_clip_region()
can be used to retrieve clip regions for text selection. Other functions exist to retrieve what position corresponds to display coordinates.pango_cairo_layout_path()
can be used to override the foreground colour (Pango markup may specify colours of its own, even if it's not currently supported; besides, I believepango_cairo_show_layout()
will employ some optimisations).It is more than possible to just import colours from sdtui configuration.
Partially resolved in
9d7bc2a
.