Ticket #640 (closed defect: invalid)
MokoScrolledPane not able to scroll a gtkhtml Widget
|Reported by:||J.Schauer@…||Owned by:||buglog@…|
|Component:||Theming - Gtk+||Version:||current svn head|
|Blocking:||Estimated Completion (week):|
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.