summaryrefslogtreecommitdiff
path: root/mate-volume-control
diff options
context:
space:
mode:
Diffstat (limited to 'mate-volume-control')
-rw-r--r--mate-volume-control/gvc-stream-status-icon.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/mate-volume-control/gvc-stream-status-icon.c b/mate-volume-control/gvc-stream-status-icon.c
index 8b4c80b..f48a370 100644
--- a/mate-volume-control/gvc-stream-status-icon.c
+++ b/mate-volume-control/gvc-stream-status-icon.c
@@ -440,7 +440,14 @@ void
gvc_stream_status_icon_set_orient (GvcStreamStatusIcon *icon,
MatePanelAppletOrient orient)
{
- icon->priv->orient = orient;
+ /*Sometimes orient does not get properly defined especially on a bottom panel
+ *Use the applet orientation if it is valid, otherwise set a vertical slider
+ *Otherwise bottom panels get a horizontal slider
+ */
+ if (orient)
+ icon->priv->orient = orient;
+ else
+ icon->priv->orient = MATE_PANEL_APPLET_ORIENT_DOWN;
}
void