summaryrefslogtreecommitdiff
path: root/shell/cc-shell.c
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2019-05-21 12:57:45 -0300
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2019-05-21 12:59:36 -0300
commit75f150d5a2ecaa7c02620a4b787118d74e9b00c7 (patch)
tree78599cd2b78d4d97e5ea3afbba7702019788dfac /shell/cc-shell.c
parent20b3d0c653c2b78f85e9fa483ee7b2020c57eda5 (diff)
downloadgnome-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.c6
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);
}
}