[gtk+] inspector: Store object title on object
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: Store object title on object
- Date: Sun, 23 Nov 2014 03:25:24 +0000 (UTC)
commit 5b7233f136c097cfda6fc24cefb5cafb58f12868
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Nov 22 15:40:46 2014 -0500
inspector: Store object title on object
gtk/inspector/object-tree.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/gtk/inspector/object-tree.c b/gtk/inspector/object-tree.c
index 000db91..6f0ac32 100644
--- a/gtk/inspector/object-tree.c
+++ b/gtk/inspector/object-tree.c
@@ -615,6 +615,17 @@ gtk_inspector_object_tree_append_object (GtkInspectorObjectTree *wt,
SENSITIVE, mapped,
-1);
+ if (name && *name)
+ {
+ gchar *title;
+ title = g_strconcat (class_name, " — ", name, NULL);
+ g_object_set_data_full (object, "gtk-inspector-object-title", title, g_free);
+ }
+ else
+ {
+ g_object_set_data (object, "gtk-inspector-object-title", (gpointer)class_name);
+ }
+
g_free (classes);
od = g_new0 (ObjectData, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]