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
This commit is contained in:
Georges Basile Stavracas Neto 2019-05-21 12:57:45 -03:00
parent 20b3d0c653
commit 75f150d5a2
19 changed files with 66 additions and 28 deletions

View file

@ -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);
}
}