[contacts] ellipsize category names in combobox



commit 2a80140d787f13318f6584d199438a22956f4eb6
Author: Jussi Kukkonen <jku linux intel com>
Date:   Thu Nov 26 18:10:39 2009 +0200

    ellipsize category names in combobox

 src/contacts-gtk.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-gtk.c b/src/contacts-gtk.c
index 7c0c71d..d85785b 100644
--- a/src/contacts-gtk.c
+++ b/src/contacts-gtk.c
@@ -313,6 +313,7 @@ create_main_window (ContactsData *data)
 	groups_combobox = gtk_combo_box_new ();
 	GtkListStore *ls = gtk_list_store_new (1, G_TYPE_STRING);
 	GtkCellRenderer *renderer = gtk_cell_renderer_text_new ();
+	g_object_set (renderer, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
 	gtk_combo_box_set_row_separator_func (GTK_COMBO_BOX (groups_combobox),
 	    groups_combo_seperator_func, NULL, NULL);
 	gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (groups_combobox), renderer, TRUE);



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