diff options
author | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2019-05-21 12:57:45 -0300 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2019-05-21 12:59:36 -0300 |
commit | 75f150d5a2ecaa7c02620a4b787118d74e9b00c7 (patch) | |
tree | 78599cd2b78d4d97e5ea3afbba7702019788dfac /panels/sharing | |
parent | 20b3d0c653c2b78f85e9fa483ee7b2020c57eda5 (diff) | |
download | gnome-control-center-75f150d5a2ecaa7c02620a4b787118d74e9b00c7.tar.gz |
shell: Add position to cc_shell_embed_widget_in_header()
So we can control where the widget should be added to. The
main window only supports left and right positions.
https://gitlab.gnome.org/GNOME/gnome-control-center/issues/528
Diffstat (limited to 'panels/sharing')
-rw-r--r-- | panels/sharing/cc-sharing-panel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/panels/sharing/cc-sharing-panel.c b/panels/sharing/cc-sharing-panel.c index 91e2c660c..303a54e4f 100644 --- a/panels/sharing/cc-sharing-panel.c +++ b/panels/sharing/cc-sharing-panel.c @@ -142,7 +142,8 @@ cc_sharing_panel_constructed (GObject *object) /* add the master switch */ cc_shell_embed_widget_in_header (cc_panel_get_shell (CC_PANEL (object)), - gtk_widget_get_parent (self->master_switch)); + gtk_widget_get_parent (self->master_switch), + GTK_POS_RIGHT); } static void |