GNOME Bugzilla – Bug 422385
vte appears at the top of the root window even when packed at the bottom of it
Last modified: 2007-03-25 14:13:16 UTC
Whenever I pack the VteTerminal widget in a box, and pack the box in a toplevel window, the vte terminal always appears at the top the root window, not in the box where it is supposed to be. I will attach a little code snippet that shows the problem.
Created attachment 85230 [details] test-case showing the problem In this test case what you should see is two labels at the top of the window, with the text "should be visible". _BELOW_ these two labels, you should see the vte widget. What you actually see is the vte widget appearing at the top of the toplevel window.
Created attachment 85231 [details] [review] a patch that fixes the problem It appears that in the vte_terminal_realize() function, the widget->window was being created at coordinates (0,0), in root window space. The patch just creates widget->window at (widget.allocation.x, widget.allocation.y). Trying the test case I attached earlier shows that the bug has been fixed.
Good work, thanks. r1858: 2007-03-25 Chris Wilson <chris@chris-wilson.co.uk> Bug 422385 – vte appears at the top of the root window even when packed at the bottom of it Patch by Dodji Seketeli. * src/vte.c (vte_terminal_size_allocate), (vte_terminal_realize): Honour the allocated position when realizing the widget.