diff options
author | rbuj <[email protected]> | 2020-04-09 11:57:54 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-04-25 18:08:19 +0200 |
commit | 0de220f56e3dde6432ca83f698a630b2f85bc374 (patch) | |
tree | a1595f88314adc048bb9a7e0c41b4bd9109f7fa1 | |
parent | 85e50bb1e8b0c07f44ae314adce19286c32b1260 (diff) | |
download | mate-media-0de220f56e3dde6432ca83f698a630b2f85bc374.tar.bz2 mate-media-0de220f56e3dde6432ca83f698a630b2f85bc374.tar.xz |
gvc-stream-applet-icon: Remove enum-conversion warning
-rw-r--r-- | mate-volume-control/gvc-stream-applet-icon.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/mate-volume-control/gvc-stream-applet-icon.c b/mate-volume-control/gvc-stream-applet-icon.c index 5dd2b39..63a172d 100644 --- a/mate-volume-control/gvc-stream-applet-icon.c +++ b/mate-volume-control/gvc-stream-applet-icon.c @@ -79,7 +79,16 @@ popup_dock (GvcStreamAppletIcon *icon, guint time) /* position roughly */ gtk_window_set_screen (GTK_WINDOW (icon->priv->dock), screen); - gvc_channel_bar_set_orientation (GVC_CHANNEL_BAR (icon->priv->bar), icon->priv->orient); + switch (icon->priv->orient) { + case MATE_PANEL_APPLET_ORIENT_LEFT: + case MATE_PANEL_APPLET_ORIENT_RIGHT: + gvc_channel_bar_set_orientation (GVC_CHANNEL_BAR (icon->priv->bar), GTK_ORIENTATION_HORIZONTAL); + break; + case MATE_PANEL_APPLET_ORIENT_UP: + case MATE_PANEL_APPLET_ORIENT_DOWN: + default: + gvc_channel_bar_set_orientation (GVC_CHANNEL_BAR (icon->priv->bar), GTK_ORIENTATION_VERTICAL); + } monitor_num = gdk_display_get_monitor_at_point (gdk_screen_get_display (screen), allocation.x, allocation.y); gdk_monitor_get_geometry (monitor_num, &monitor); |