diff options
author | lukefromdc <[email protected]> | 2019-02-07 21:16:53 -0500 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-03-22 09:56:01 +0100 |
commit | bccb25899f8184f1afea4934b70a4ff91672ac7a (patch) | |
tree | 6ffbdf4abef6929de8efd6264b37a71b164e80f8 /mate-volume-control | |
parent | b704bb5ef3bf67d9f78d5d4d8591fb316bee11c1 (diff) | |
download | mate-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.c | 9 |
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 |