After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 118496 - Gtk::ScrolledWindow doesn't scroll added object
Gtk::ScrolledWindow doesn't scroll added object
Status: RESOLVED INVALID
Product: gtkmm
Classification: Bindings
Component: general
2.0
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2003-07-28 16:57 UTC by Vladislav Grinchenko
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Vladislav Grinchenko 2003-07-28 16:57:03 UTC
Gtk::ScrolledWindow doesn't scroll TreeView object added to it in gtkmm2
versions 2.0 and 2.1. In the example source code, src/MainWindow_ui.cpp,
TreeView is added with "scrollwin_ptr->add (m_tree_view);" The documentation 
doesn't state any other actions required beyound calling add() to make 
ScrolledWindow scroll TreeView when its TreeSelection::select(path) is
called to highlight next row which is invisible. The expected behaviour at
this point for ScrolledWindow is to adjust TreeView so that the newly
selected row is aligned in the center of the visible window.
This is how it used to work with CList and ScrolledWindow in gtkmm1.2.

Example source code can be found here:
http://users.erols.com/volotsky/vlg/gtkmm/TreeViewTest-1.1.tar.gz.
Package requires gnomemm2 to be installed. Compile and start TreeViewTest.
Clicking 'Down' button repeatedly will select rows 1 through 7. On the 8th
click, row 8 is selected, but ScrolledWindow does not adjust the view to
make it visible. Nor does it scroll the 8th row to be centered in the
middle of the window.
Comment 1 Murray Cumming 2003-07-29 06:06:10 UTC
> Package requires gnomemm2 to be installed.

No, please provide a simple-as-possible test case. I will not spend my
time reducing your test case. Your time is not more valuable than
mine. I do want to investigate this, but you need to bring me
something to investigate.
Comment 2 Murray Cumming 2003-08-01 07:56:59 UTC
You do not seem to be using Gtk::TreeView::scroll_to_view(), but you
seem to know about this already:
http://marc.theaimsgroup.com/?l=gtkmm&m=105614160928029&w=2

I will close this bug if there is no simple test case.
Comment 3 Murray Cumming 2003-08-11 12:11:30 UTC
Please respond. Otherwise I will assume that the advice above fixes
your problm, and I will close this bug.
Comment 4 Murray Cumming 2003-08-13 06:40:09 UTC
Closing due to lack of response or test case.