Re: VTE questions
- From: "Arnel A. Borja" <kyoushuu yahoo com>
- To: kip thevertigo com
- Cc: gtk-app-devel-list gnome org
- Subject: Re: VTE questions
- Date: Wed, 29 May 2013 06:59:29 +0800
Hello,
On Wednesday, 29 May, 2013 05:03 AM, Kip Warner wrote:
On Mon, 2013-05-27 at 14:48 +0200, Colomban Wendling wrote:
The VteTerminal widget implements GtkScrollable, so the answer is
"GtkScrolledWindow". GtkViewport is only useful to make unscrollable
widgets scrollable, and normally any widget that would be expected to
scroll (text view, tree view, icon view, etc.) should be scrollable, so
a first guess at GtkScrolledWindow would have been fine. Also, it's
harmless to try it ;)
I've actually tried both, but the GtkViewport seemed to look better. For
some reason when I put it inside a GtkScrolledWindow, part of the child
VTE widget seems clipped at the top and I don't know how to solve this.
Worst case, I wonder if there is any harm in using it in a viewport?
Seems like VteTerminal prefers a vertical GtkScrollbar. That's what
gnome-terminal and anjuta use:
at function terminal_screen_container_constructor:
https://git.gnome.org/browse/gnome-terminal/tree/src/terminal-screen-container.c
||at function create_box:|
https://git.gnome.org/browse/anjuta/tree/plugins/terminal/terminal.c
There's code in gnome-terminal that uses GtkScrolledWindow but it is
not enabled by default (and I can't find any other file that uses
USE_SCROLLED_WINDOW that checks if a GtkScrolledWindow should be used,
seems like that code is not used at all).
|
GtkScrolledWindow::shadow-type
I've already tried etched in / out, in / out, and no luck with both the
viewport and scrolled window, and none of them give the desired
appearance.
Try copying Anjuta's way of packing a terminal; it uses a GtkFrame to
pack a horizontal GtkBox which contains the VteTerminal and the
GtkScrollbar.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]