[glade/composite-templates-new: 4/4] GladeProject: Update the misc column with an indicator marking that it is template



commit 7c820f379cca0a2b8b830016579dab41509d9393
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Mon Apr 1 16:32:45 2013 +0900

    GladeProject: Update the misc column with an indicator marking that it is template

 gladeui/glade-project.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gladeui/glade-project.c b/gladeui/glade-project.c
index ab9a655..a3a929b 100644
--- a/gladeui/glade-project.c
+++ b/gladeui/glade-project.c
@@ -4590,6 +4590,8 @@ glade_project_model_get_value (GtkTreeModel *model,
                   g_object_get_data (glade_widget_get_object (widget),
                                      "special-child-type")) != NULL)
           str = g_strdup_printf (_("(%s child)"), child_type);
+        else if (glade_widget_get_is_composite (widget))
+          str = g_strdup_printf (_("(template)"));
         else if ((ref_prop = 
                   glade_widget_get_parentless_widget_ref (widget)) != NULL)
         {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]