Re: VTE questions



Le 27/05/2013 08:19, Kip Warner a écrit :
Hey list,

I have a VTE widget. In order for it to be scrollable, should it be
nested within a GtkViewport or a GtkScrolledWindow? I couldn't tell from
its documentation.

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 ;)

Secondly, how do I add a sunken border to the VTE widget? I tried adding
a GtkFrame as its parent with different styles, but none of them appear
to be sunken.

GtkScrolledWindow::shadow-type


Thank you,




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]