summaryrefslogtreecommitdiff
path: root/mate-volume-control
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2019-02-07 21:16:53 -0500
committerraveit65 <[email protected]>2019-03-22 09:56:01 +0100
commitbccb25899f8184f1afea4934b70a4ff91672ac7a (patch)
tree6ffbdf4abef6929de8efd6264b37a71b164e80f8 /mate-volume-control
parentb704bb5ef3bf67d9f78d5d4d8591fb316bee11c1 (diff)
downloadmate-media-bccb25899f8184f1afea4934b70a4ff91672ac7a.tar.bz2
mate-media-bccb25899f8184f1afea4934b70a4ff91672ac7a.tar.xz
Ensure volume slider is always perpendicular to the panel
Apparently there is an issue with getting the applet orientation on a bottom panel
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