Ethereal-dev: Re: [Ethereal-dev] Should we use scrolled_window_new instead of gtk_scrolled_win

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Fri, 6 Feb 2004 17:17:55 -0800

On Feb 5, 2004, at 10:29 PM, Ulf Lamping wrote:

a) make the preference setting "Vertical scrollbar placement" take effect for every scrolled window, not only the ones where currently our function is used.


So is there some GTK+ or GNOME preference to let users select where they want their scrollbars (in which case we should honor it - if it's GNOME, presumably we'd do so only if GNOME is being used), or is that purely left up to the application?

This setting is in "our" Preferences dialog, I don't know if there is such a one in the common GTK+ / GNOME preferences. What are you thinking of here exactly?

I was wondering whether there was some notion in GTK+ or GNOME of scrollbar placement being a global preference that a user should be able to set for all {GTK+,GNOME} applications.

Sun's OpenWindows had such a setting - I don't know whether it affected only XView applications or also affected other OPEN LOOK toolkits such as OLIT (it probably didn't affect non-OPEN LOOK toolkits):

	http://docs.sun.com/db/doc/806-2901/6jc3a4m10?a=view

Motif appears to have X resources to control scrollbar placement, at least for text widgets:

	http://www.ist.co.uk/motif/books/vol6A/ch-18.fm.html

"The XmNscrollLeftSide and XmNscrollTopSide resources take Boolean values that control the location of the ScrollBars within the ScrolledWindow. By default, XmNscrollTopSide is set to False, which causes the ScrollBar to be placed below the ScrolledWindow. The default value of XmNscrollLeftSide depends upon the value of XmNstringDirection. These two resources should not be set by the application, but left to users to specify themselves."

so presumably the user would either tweak their X settings manually to choose where scrollbars should be put, or might have some nice preferences editor to control that (although I suspect not).

I don't see anything obvious in the KDE documentation for any class with "scroll" in its name specifying either APIs or preference settings to control the location of scrollbars (in fact, I don't see any kdeui library classes with "scroll" in their names at all), or do I see anything for QScrollView in the Qt documentation; the pictures in the documentation for QScrollView show only scrollbars on the right and bottom.