[empathy/gnome-3-8] debug-window: ellipsize the message text renderer



commit fa72bed70086dc63d06577fde43dc6ed7196e0b9
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Sep 9 15:16:05 2013 +0200

    debug-window: ellipsize the message text renderer
    
    Ridiculously long messages were crashing empathy-debugger because Pango
    weren't able to display them all.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=696328

 src/empathy-debug-window.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-debug-window.c b/src/empathy-debug-window.c
index 0a1d7f7..948b9ef 100644
--- a/src/empathy-debug-window.c
+++ b/src/empathy-debug-window.c
@@ -2063,7 +2063,12 @@ am_prepared_cb (GObject *am,
       (GtkTreeCellDataFunc) debug_window_level_formatter, NULL, NULL);
 
   renderer = gtk_cell_renderer_text_new ();
-  g_object_set (renderer, "family", "Monospace", NULL);
+
+  g_object_set (renderer,
+      "family", "Monospace",
+      "ellipsize", PANGO_ELLIPSIZE_END,
+      NULL);
+
   gtk_tree_view_insert_column_with_data_func (GTK_TREE_VIEW (self->priv->view),
       -1, _("Message"), renderer,
       (GtkTreeCellDataFunc) debug_window_message_formatter, NULL, NULL);


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