]> git.0d.be Git - empathy.git/commitdiff
main-window: use line-wrap for "no match" label
authorDiego Escalante Urrelo <descalante@igalia.com>
Sat, 22 Jan 2011 22:44:55 +0000 (17:44 -0500)
committerDiego Escalante Urrelo <descalante@igalia.com>
Mon, 24 Jan 2011 19:29:52 +0000 (14:29 -0500)
On narrow contact lists, the ellipsizing makes the "No match" message
disappear, users are forced to resize the window to know what's hidden beyond
the ….

Wrapping takes advantage of all the vertical space available.

Bug #640295

src/empathy-main-window.c

index 740220b2f62efc0d767814439eb78954af4e9454..d7422d874db17d908105cdc1c9d6ca330be881dd 100644 (file)
@@ -532,8 +532,8 @@ main_window_row_deleted_cb (GtkTreeModel      *model,
                        gtk_label_set_markup (GTK_LABEL (priv->no_entry_label), tmp);
                        g_free (tmp);
 
-                       gtk_label_set_ellipsize (GTK_LABEL (priv->no_entry_label),
-                               PANGO_ELLIPSIZE_END);
+                       gtk_label_set_line_wrap (GTK_LABEL (priv->no_entry_label),
+                               TRUE);
 
                        gtk_notebook_set_current_page (
                                        GTK_NOTEBOOK (priv->notebook), PAGE_NO_MATCH);