Abdó Roig-Maranges
2013-07-07 15:21:39 UTC
Hi again,
I think I've been able to fix the odd "huge-window" issue with GTK3. I attach a
patch.
Girara was hiding the scrollbars by setting GTK_POLICY_NEVER. It seems that, in
GTK3, the ScrolledWindow container thinks that in such case he must fit the
children size. I have fixed it by always setting GTK_POLICY_AUTOMATIC (which
leads to the desired behaviour), and hiding the scrollbars via
gtk_widget_set_visible when necessary.
However, for some reason that eludes me, this does not work in GTK2, so I kept
two separate versions of it. Maybe somene else will be able to fix this
uniformly in GTK2 and GTK3.
Abd? Roig.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: girara-scrolls-gtk3.patch
Type: text/x-diff
Size: 5553 bytes
Desc: fix scrollbar issues in gtk3
URL: <http://lists.pwmt.org/archive/zathura/attachments/20130707/73fde78e/attachment.patch>
I think I've been able to fix the odd "huge-window" issue with GTK3. I attach a
patch.
Girara was hiding the scrollbars by setting GTK_POLICY_NEVER. It seems that, in
GTK3, the ScrolledWindow container thinks that in such case he must fit the
children size. I have fixed it by always setting GTK_POLICY_AUTOMATIC (which
leads to the desired behaviour), and hiding the scrollbars via
gtk_widget_set_visible when necessary.
However, for some reason that eludes me, this does not work in GTK2, so I kept
two separate versions of it. Maybe somene else will be able to fix this
uniformly in GTK2 and GTK3.
Abd? Roig.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: girara-scrolls-gtk3.patch
Type: text/x-diff
Size: 5553 bytes
Desc: fix scrollbar issues in gtk3
URL: <http://lists.pwmt.org/archive/zathura/attachments/20130707/73fde78e/attachment.patch>