Commit d0a12aea authored by Christian Hergert's avatar Christian Hergert
Browse files

create-project: add helper to get template instance

parent 1f05d712
......@@ -130,3 +130,19 @@ gbp_create_project_template_icon_init (GbpCreateProjectTemplateIcon *self)
{
gtk_widget_init_template (GTK_WIDGET (self));
}
/**
* gbp_create_project_template_icon_get_template:
* @self: a #GbpCreateProjectTemplateIcon
*
* Gets the template for the item.
*
* Returns: (transfer none): an #IdeProjectTemplate
*/
IdeProjectTemplate *
gbp_create_project_template_icon_get_template (GbpCreateProjectTemplateIcon *self)
{
g_return_val_if_fail (GBP_IS_CREATE_PROJECT_TEMPLATE_ICON (self), NULL);
return self->template;
}
......@@ -27,4 +27,6 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (GbpCreateProjectTemplateIcon, gbp_create_project_template_icon, GBP, CREATE_PROJECT_TEMPLATE_ICON, GtkBin)
IdeProjectTemplate *gbp_create_project_template_icon_get_template (GbpCreateProjectTemplateIcon *self);
G_END_DECLS
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