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 /shell/cc-shell.c | |
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 'shell/cc-shell.c')
-rw-r--r-- | shell/cc-shell.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/shell/cc-shell.c b/shell/cc-shell.c index 81de92a09..ffab0a68d 100644 --- a/shell/cc-shell.c +++ b/shell/cc-shell.c @@ -152,7 +152,9 @@ cc_shell_get_toplevel (CcShell *shell) } void -cc_shell_embed_widget_in_header (CcShell *shell, GtkWidget *widget) +cc_shell_embed_widget_in_header (CcShell *shell, + GtkWidget *widget, + GtkPositionType position) { CcShellInterface *iface; @@ -168,6 +170,6 @@ cc_shell_embed_widget_in_header (CcShell *shell, GtkWidget *widget) } else { - iface->embed_widget_in_header (shell, widget); + iface->embed_widget_in_header (shell, widget, position); } } |