[gnome-terminal] profiles: editor: Remove UUID from the profile list



commit 82c5a62781d8f88d168f9df045e96223eccada37
Author: Christian Persch <chpe gnome org>
Date:   Mon Jul 15 17:36:11 2013 +0200

    profiles: editor: Remove UUID from the profile list
    
    It remains visible in the profile's preferences; one place showing it is enough.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=704097

 src/terminal-prefs.c |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/src/terminal-prefs.c b/src/terminal-prefs.c
index dffac10..979c8ac 100644
--- a/src/terminal-prefs.c
+++ b/src/terminal-prefs.c
@@ -86,20 +86,18 @@ profile_cell_data_func (GtkTreeViewColumn *tree_column,
 {
   GSettings *profile;
   const char *text;
-  char *uuid;
   GValue value = { 0, };
 
   gtk_tree_model_get (tree_model, iter, (int) COL_PROFILE, &profile, (int) -1);
   g_settings_get (profile, TERMINAL_PROFILE_VISIBLE_NAME_KEY, "&s", &text);
-  uuid = terminal_settings_list_dup_uuid_from_child (data->profiles_list, profile);
 
   g_value_init (&value, G_TYPE_STRING);
-  g_value_take_string (&value,
-                       g_markup_printf_escaped ("%s\n<span size=\"small\" 
font_family=\"monospace\">%s</span>",
-                                                strlen (text) > 0 ? text : _("Unnamed"), 
-                                                uuid));
-  g_free (uuid);
-  g_object_set_property (G_OBJECT (cell), "markup", &value);
+  if (text[0])
+    g_value_set_string (&value, text);
+  else
+    g_value_set_static_string (&value, _("Unnamed"));
+
+  g_object_set_property (G_OBJECT (cell), "text", &value);
   g_value_unset (&value);
 
   g_object_unref (profile);


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