GtkScrolledWindow, part of the GTK+ (GIMP Toolkit), adds scroll bars to its child widget.
Questions tagged [gtkscrolledwindow]
17 questions
4
votes
2 answers
Is it possible to set the color of a ScrollWindow?
I have the following code,:
GdkColor color;
color.red = 0x0;
color.green = 0x0;
color.blue = 0x0;
gtk_init (&argc, &argv);
window = gtk_dialog_new ();
gtk_widget_modify_bg(window, GTK_STATE_NORMAL, &color);
g_signal_connect (window, "destroy",…
user7537486
3
votes
3 answers
Auto scroll a gtkscrolledwindow
I have a form interface with a large number of horizontal drop down and text boxes that are inside a GTKscrolledWindow. The form has to be aligned horizontally because there are an unlimited number of forms in the window (think tabel of forms).
Is…

David Just
- 288
- 1
- 4
- 12
3
votes
2 answers
How to make a Gtk+ widget inside a GtkScrolledWindow to expand when packed into a GtkPane?
I have a program which shows two GtkTreeViews packed inside a GtkPaned (sscce: here):
gtk_paned_add1(GTK_PANED(paned), tree_view1);
gtk_paned_add2(GTK_PANED(paned), tree_view2);
The result is the following:
However, the tables can become bigger,…

brandizzi
- 26,083
- 8
- 103
- 158
2
votes
1 answer
Strange issue when I using GtkScrolledWindow in glade
I want to wrap a listbox widget into a scrolled widget, then I find the GtkScrolledWindow, however, I could not drag and drop a GtkListBox into GtkScrolledWindow. I also tried right click the GtkListBox, select Add Parent then Scrolled Window like…

Donghua Liu
- 1,776
- 2
- 21
- 30
2
votes
1 answer
PyGTK: Trouble with size of ScrolledWindow
I am using PyGTK and the gtk.Assistant. On one page I have placed a treeview (one column, just strings) in a gtk.ScrolledWindow (I wanted the vertical scrollbar, since the list contains about 35 items). Everything is working fine; the only thing…

canavanin
- 2,559
- 3
- 25
- 36
2
votes
2 answers
GTK3+ (3.14) drawing area on scrolledwindow
It makes a while that I've been trying to put a drawing area on a scrolled window. I've been reading articles about pygtk and C solutions but I think that they are not working in pyGobject.
I made a minimal example:
from gi.repository import Gtk,…
user3672754
2
votes
1 answer
How can i get current showing area in GtkScrolledWindow
I have a gtkscrolledwindow and there is a gtk image in it. How can i get current showing area in GtkScrolledWindow? For example my image is 1366x768 pix and 300x400 pix part of image is showing in scrolledwindow. I want to get coordinates of showing…

mnrl
- 1,635
- 2
- 17
- 28
1
vote
1 answer
GTK4 ScrolledWindow renders content unreadable
I am learning GTK4 and Python. While playing round with the Gtk.StackSidebar class, I came across this strange behavior that I cannot seem to figure out.
I want my sidebar on the left, and my content to be scrollable. To do this I introduced a…

Björn Vildljung
- 13
- 4
1
vote
1 answer
When adding a Gtk.TreeView to a Gtk.ScrolledWindow, the scrollbar cursor is out-of-scale
If I want to make a Gtk.TreeView scrollable, I embed it in a Gtk.ScrolledWindow. Embedding the TreeView produces a cursor which is out of scale (way too large).
There are 7 more rows in the TreeView, below the 3 shown. I would expect the scrollbar…

jcoppens
- 5,306
- 6
- 27
- 47
1
vote
0 answers
How to limit the rightest Gtk.TreeViewColumn's width inside a Gtk.ScrolledWindow?
I cannot prevent the rightest column of a Gtk.TreeView to expand.
As the real Gtk.TreeView may display a greater number of rows, making it usually somewhat greater than the screen's height, it is embedded in a Gtk.ScrolledWindow. This is required.…

zezollo
- 4,606
- 5
- 28
- 59
1
vote
1 answer
Manually scroll to a child in a Gtk.ScrolledWindow
I'm developping a GTK app (in Python with PyGTK) and I need to scroll manually the Gtk.ScrolledWindow to a child it contains to show it in the screen.
The ScrolledWindow contains a ListBox, which contains a lot of ListBoxRow.
self.currencySwitcher =…

XWarzor
- 77
- 1
- 5
1
vote
1 answer
scroll TextView in ScrolledWindow so that cursor is visible in pyGTK2
I have a Textview in a ScrolledWindow. I have set up a callback on signal "changed" of textbuffer of the textview. Now I need to scroll the ScrolledWindow to the point of the cursor. How do I do that?
self.outgoing =…

thekindlyone
- 509
- 1
- 6
- 21
0
votes
1 answer
How to Scroll a ScrolledWindow with arrow keys in Gtk 3.24.5?
I have a gtk entry right below the scrolled window which has the default focus , left and right keys move the cursor in the entry ,I am able to catch the key press events for up and down arrow keys but don't know how to scroll the scrolled window,…

Archith
- 17
- 7
0
votes
1 answer
PyGtk3 - Gtk.DrawingArea won't scroll
My problem consists in that I have replaced a GtkImage for a GtkDrawingArea widget and it's not scrolling like it happens with the GtkImage.
This is how I place both my GtkImage and GtkDrawingArea (one at a…

deko
- 463
- 1
- 6
- 17
0
votes
2 answers
How to detect if GtkScrolledWindow is scrolled to bottom?
I would like to know if there is a way to know if the user scrolled GtkScrolledWindow (containing a GtkTextView) to the bottom or not.
Indeed, I automatically scrolled to the end with:
gtk_text_buffer_get_end_iter(tbuf, &iter);
GtkTextMark…

lock
- 411
- 4
- 15