[Bug 640] New: MokoScrolledPane not able to scroll a gtkhtml Widget
bugzilla-daemon at bugzilla.openmoko.org
bugzilla-daemon at bugzilla.openmoko.org
Mon Jul 16 22:22:47 CEST 2007
http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=640
Summary: MokoScrolledPane not able to scroll a gtkhtml Widget
Product: OpenMoko
Version: current svn head
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Theming
AssignedTo: buglog at lists.openmoko.org
ReportedBy: J.Schauer at web.de
CC: buglog at lists.openmoko.org
I modified the Stylus Demo by Mickey and included a gtkhtml widget in the
MokoScrolledPane* detailswindow instead of GtkLabel* details.
The problem: the content of the gtkhtml widget displays its content but it is
not scrollable as the scrollbar is always at full height.
One workaround would be to specify the height of my gtkhtml widget with
gtk_widget_set_size_request but I think MokoScrolledPane has to detect the
correct size by its own
If I replace MokoScrolledPane* detailswindow = moko_scrolled_pane_new() with a
normal GtkScrolledWindow and add my gtkhtml widget with
gtk_scrolled_window_add_with_viewport my gtkhtml widget is correctly scrolled
but I want to use MokoScrolledPane because of the tiny fullscreen button.
I tried to put my gtkhtml widget into several different containers (viewport,
hbox) but nothing added the scroll functionality to MokoScrolledPane. I could
embed my gtkhtml widget within a GtKScrolledWindow inside a MokoScrolledPane but
this would only result in two seperate Scrollbars: the outer MokoScrolledPane
Scrollbar not working and the inner one working as expected.
I had a look into the the MokoScrolledPane implementation and saw that the
scrolling ability was disabled with gtk_scrolled_window_set_policy(
GTK_SCROLLED_WINDOW(priv->scrolledwindow), GTK_POLICY_NEVER, GTK_POLICY_NEVER );
But this obviously has to be so because the scrollbar and fullscreen button are
added manually later.
We see that MokoScrolledPane can scroll a gtk_label corretly. Why can't it do so
with a gtkhtml widget - the GtkScrolledWindow can!
I didn't look very deep into the openmoko code but I think that this is a
problem that has to be solved for further development with the openmoko gtk style.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are on the CC list for the bug, or are watching someone who is.
More information about the buglog
mailing list