(gtk3-only) Use GTK3 overlay scrollbars
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Terminator |
New
|
Wishlist
|
Unassigned |
Bug Description
Ubuntu 15.10 uses the new overlay scrollbars added in Gnome 3.16+. The Terminator scrollbars are using the old scrollbar style.
The applications using the new overlays are almost certainly using (subclassing, or are subclasses of) the GtkScrolledWindow widget, and setting the overlay:
https:/
GNOME-Terminal and Terminator work differently. They both create a horizontal box, and pack the terminal widget in one, and the scrollbar widget in the other. The adjustment of the terminal is connected to the scrollbar when the scrollbar is created:
https:/
https:/
I see that the GtkScrolledWindow can have a widget added to it that implements the GtkScrollable interface, and the Vte widget does implement that interface. So by changing the HBox to a GtkScrolledWindow and adding the VteTerminal to it, and dropping the separate scrollbar, it should work. It would be quite invasive to do though - lots of things would probably need to change.
Minimal proof of concept for embedding the VTE widget into a GtkScrolledWindow, tested as working by leoheck, raiser of https:/ /answers. launchpad. net/terminator/ +question/ 273386
Couple of notes:
Checks for 3.16+ before trying to set the overlay option
Does not currently theme the background - probably requires messing with styling somehow.
Also enables the kinetic scrolling feature. Anyone with a touchscreen want to test that and let me know if it works?