Commit 618785ed authored by Christian Hergert's avatar Christian Hergert
Browse files

greeter: use ui template to add buttons section

parent e971211e
......@@ -588,6 +588,7 @@ ide_greeter_workspace_class_init (IdeGreeterWorkspaceClass *klass)
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/builder/ui/ide-greeter-workspace.ui");
gtk_widget_class_bind_template_child (widget_class, IdeGreeterWorkspace, action_bar);
gtk_widget_class_bind_template_child (widget_class, IdeGreeterWorkspace, back_button);
gtk_widget_class_bind_template_child (widget_class, IdeGreeterWorkspace, buttons_section);
gtk_widget_class_bind_template_child (widget_class, IdeGreeterWorkspace, clone_surface);
gtk_widget_class_bind_template_child (widget_class, IdeGreeterWorkspace, header_bar);
gtk_widget_class_bind_template_child (widget_class, IdeGreeterWorkspace, left_box);
......@@ -599,6 +600,7 @@ ide_greeter_workspace_class_init (IdeGreeterWorkspaceClass *klass)
gtk_widget_class_bind_template_callback (widget_class, stack_notify_visible_child_cb);
g_type_ensure (IDE_TYPE_CLONE_SURFACE);
g_type_ensure (IDE_TYPE_GREETER_BUTTONS_SECTION);
}
static void
......@@ -632,11 +634,6 @@ ide_greeter_workspace_init (IdeGreeterWorkspace *self)
_ide_greeter_workspace_init_actions (self);
_ide_greeter_workspace_init_shortcuts (self);
self->buttons_section = g_object_new (IDE_TYPE_GREETER_BUTTONS_SECTION,
"visible", TRUE,
NULL);
ide_greeter_workspace_add_section (self, IDE_GREETER_SECTION (self->buttons_section));
}
IdeGreeterWorkspace *
......
......@@ -109,6 +109,11 @@
<property name="orientation">vertical</property>
<property name="spacing">32</property>
<property name="visible">true</property>
<child>
<object class="IdeGreeterButtonsSection" id="buttons_section">
<property name="visible">true</property>
</object>
</child>
</object>
</child>
</object>
......
Supports Markdown
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