diff options
author | lukefromdc <[email protected]> | 2020-02-25 00:48:50 -0500 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-03-08 21:24:27 +0100 |
commit | a8da19b13e02cf29439b776c22f8fd4d8dbc3853 (patch) | |
tree | 4a27fc721227f5189979be04bc2993feb5ba7196 /mate-volume-control | |
parent | 5ac41347e02e983467a28022d1e725d4f1be4a52 (diff) | |
download | mate-media-a8da19b13e02cf29439b776c22f8fd4d8dbc3853.tar.bz2 mate-media-a8da19b13e02cf29439b776c22f8fd4d8dbc3853.tar.xz |
panel-applet: ensure speaker can be shown alongside or above mic1.22
Initialize the applet GktBox in the appropriate direction.
Diffstat (limited to 'mate-volume-control')
-rw-r--r-- | mate-volume-control/gvc-applet.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/mate-volume-control/gvc-applet.c b/mate-volume-control/gvc-applet.c index 7a9f003..f91d68a 100644 --- a/mate-volume-control/gvc-applet.c +++ b/mate-volume-control/gvc-applet.c @@ -524,7 +524,21 @@ gvc_applet_fill (GvcApplet *applet, MatePanelApplet* applet_widget) mate_panel_applet_set_background_widget (MATE_PANEL_APPLET (applet_widget), GTK_WIDGET (applet_widget)); applet->priv->applet = applet_widget; - applet->priv->box = GTK_BOX (gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0)); + /*FIXME: We haved to set this up BEFORE packing in icons. find a way to update this when the applet is moved that works*/ + switch (mate_panel_applet_get_orient (applet->priv->applet)) { + case MATE_PANEL_APPLET_ORIENT_UP: + applet->priv->box = GTK_BOX (gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0)); + break; + case MATE_PANEL_APPLET_ORIENT_DOWN: + applet->priv->box = GTK_BOX (gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0)); + break; + case MATE_PANEL_APPLET_ORIENT_LEFT: + applet->priv->box = GTK_BOX (gtk_box_new (GTK_ORIENTATION_VERTICAL, 0)); + break; + case MATE_PANEL_APPLET_ORIENT_RIGHT: + applet->priv->box = GTK_BOX (gtk_box_new (GTK_ORIENTATION_VERTICAL, 0)); + break; + } /* Define an initial size and orientation */ gvc_stream_applet_icon_set_size (applet->priv->icon_input, mate_panel_applet_get_size (applet->priv->applet)); |