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 476120 - Epiphany does not show scrollbars when embedding WebKit
Epiphany does not show scrollbars when embedding WebKit
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: Backend
git master
Other Linux
: Normal normal
: ---
Assigned To: Xan Lopez
Epiphany Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-09-12 07:36 UTC by Cosimo Cecchi
Modified: 2007-09-30 11:52 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
testcase (1.77 KB, application/x-gzip)
2007-09-12 07:38 UTC, Cosimo Cecchi
  Details
[1/1] Implement size_request for EphyTab. (1.00 KB, patch)
2007-09-30 08:56 UTC, Xan Lopez
accepted-commit_now Details | Review

Description Cosimo Cecchi 2007-09-12 07:36:52 UTC
Epiphany fails to render the scrollbars when embedding WebKit.
I talked with Xan about this, and he said to ping someone of Webkit, but the problem really seems to be on Ephy's side, as I wrote a small testcase of a WebKitEmbed-like class (attached files coming soon) and it works ok.
Comment 1 Cosimo Cecchi 2007-09-12 07:38:12 UTC
Created attachment 95408 [details]
testcase

Compile with 
gcc `pkg-config WebKitGdk gtk+-2.0 glib-2.0 --cflags --libs` main.cpp testcase-embed.h testcase-embed.cpp
Comment 2 Xan Lopez 2007-09-30 08:55:38 UTC
Ok, I know what happens. GtkScrolledWindow uses gtk_widget_get_child_requisition to get the size of the scrollbars in size_allocate, so it assumes that size_request was called before (otherwise the values there will be outdated). Seems we are not doing this anywhere but once on startup, so from that point we live with width/height 0 for the scrollbars. I suppose this didn't matter on mozilla because the scrollbars are not real widgets there.

Patch to fix this follows.
Comment 3 Xan Lopez 2007-09-30 08:56:10 UTC
Created attachment 96404 [details] [review]
[1/1] Implement size_request for EphyTab.

 src/ephy-tab.c |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)
Comment 4 Xan Lopez 2007-09-30 11:52:20 UTC
Committed on trunk.