Commit ef2a1ffc authored by Christian Hergert's avatar Christian Hergert Committed by Christian Hergert
Browse files

addins: use ide_workbench_get_headerbar()

Rather than casting what they get back, this is safe in case the current
perspective is not what they expect.
parent 3e7fbc4e
......@@ -88,7 +88,7 @@ ide_editor_workbench_addin_load (IdeWorkbenchAddin *addin,
self->manager = pnl_dock_manager_new ();
header = IDE_WORKBENCH_HEADER_BAR (gtk_window_get_titlebar (GTK_WINDOW (workbench)));
header = ide_workbench_get_headerbar (workbench);
self->new_document_button = g_object_new (GTK_TYPE_BUTTON,
"action-name", "perspective.new-file",
......
......@@ -314,7 +314,7 @@ gbp_build_workbench_addin_load (IdeWorkbenchAddin *addin,
g_object_bind_property (self, "result", self->panel, "result", 0);
header = IDE_WORKBENCH_HEADER_BAR (gtk_window_get_titlebar (GTK_WINDOW (workbench)));
header = ide_workbench_get_headerbar (workbench);
self->run_button = g_object_new (GTK_TYPE_BUTTON,
"child", g_object_new (GTK_TYPE_IMAGE,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment