[gnome-builder] create-project: Add a tooltip for the project template icon
- From: Matthew Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] create-project: Add a tooltip for the project template icon
- Date: Mon, 1 Aug 2016 15:54:03 +0000 (UTC)
commit d3189acddb67dc09032d65047785d93565c4602f
Author: Matthew Leeds <mleeds redhat com>
Date: Mon Aug 1 11:51:27 2016 -0400
create-project: Add a tooltip for the project template icon
.../gbp-create-project-template-icon.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/create-project/gbp-create-project-template-icon.c
b/plugins/create-project/gbp-create-project-template-icon.c
index 5a483bf..c2cddd7 100644
--- a/plugins/create-project/gbp-create-project-template-icon.c
+++ b/plugins/create-project/gbp-create-project-template-icon.c
@@ -65,6 +65,7 @@ gbp_create_project_template_icon_set_property (GObject *object,
GbpCreateProjectTemplateIcon *self = GBP_CREATE_PROJECT_TEMPLATE_ICON (object);
g_autofree gchar *icon_name = NULL;
g_autofree gchar *name = NULL;
+ g_autofree gchar *description = NULL;
switch (prop_id)
{
@@ -73,11 +74,14 @@ gbp_create_project_template_icon_set_property (GObject *object,
icon_name = ide_project_template_get_icon_name (self->template);
name = ide_project_template_get_name (self->template);
+ description = ide_project_template_get_description (self->template);
g_object_set (self->template_icon,
"icon-name", icon_name,
NULL);
gtk_label_set_text (self->template_name, name);
+ if (!ide_str_empty0 (description))
+ gtk_widget_set_tooltip_text (GTK_WIDGET (self), description);
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]