GtkRange: Set orientable style classes initially

This was an omission, horizontal/vertical would only be set
when the orientation is changed.
This commit is contained in:
Matthias Clasen 2014-07-18 19:39:32 -04:00
parent 18a92992a0
commit f1d1f139af

View File

@ -754,6 +754,8 @@ gtk_range_init (GtkRange *range)
priv->fill_level = G_MAXDOUBLE; priv->fill_level = G_MAXDOUBLE;
priv->timer = NULL; priv->timer = NULL;
_gtk_orientable_set_style_classes (GTK_ORIENTABLE (range));
priv->multipress_gesture = gtk_gesture_multi_press_new (GTK_WIDGET (range)); priv->multipress_gesture = gtk_gesture_multi_press_new (GTK_WIDGET (range));
gtk_gesture_single_set_touch_only (GTK_GESTURE_SINGLE (priv->multipress_gesture), gtk_gesture_single_set_touch_only (GTK_GESTURE_SINGLE (priv->multipress_gesture),
FALSE); FALSE);