Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
win32: Fix vertical GtkVolumeButton widget rendering.
The trough was being rendered horizontal for vertical
GtkVolumeButton widgets. Not relying on GTK_IS_VSCALE
but using the orientable interface instead fixes this.
  • Loading branch information
dieterv committed Dec 7, 2011
1 parent 9038975 commit ce10987
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/engines/ms-windows/msw_style.c
Expand Up @@ -2033,7 +2033,9 @@ draw_box (GtkStyle *style,
}
else if (widget && GTK_IS_SCALE (widget))
{
gboolean is_vertical = GTK_IS_VSCALE (widget);
GtkOrientation orientation;

orientation = gtk_orientable_get_orientation (GTK_ORIENTABLE (widget));

if (!xp_theme_is_active ())
{
Expand All @@ -2042,7 +2044,7 @@ draw_box (GtkStyle *style,
widget, detail, x, y, width, height);
}

if (is_vertical)
if (orientation == GTK_ORIENTATION_VERTICAL)
{
if (xp_theme_draw
(window, XP_THEME_ELEMENT_SCALE_TROUGH_V,
Expand Down

0 comments on commit ce10987

Please sign in to comment.