Mercurial > audlegacy
diff src/audacious/ui_preferences.c @ 4155:ae231a103173
set wrap-mode in category_treeview
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Fri, 04 Jan 2008 14:42:13 +0100 |
parents | a35b9970d55d |
children | ce8f5c9c0869 |
line wrap: on
line diff
--- a/src/audacious/ui_preferences.c Fri Jan 04 14:14:09 2008 +0100 +++ b/src/audacious/ui_preferences.c Fri Jan 04 14:42:13 2008 +0100 @@ -970,6 +970,10 @@ gtk_tree_view_column_pack_start(column, renderer, FALSE); gtk_tree_view_column_set_attributes(column, renderer, "text", 1, NULL); + gint width, height; + gtk_widget_get_size_request(GTK_WIDGET(treeview), &width, &height); + g_object_set(G_OBJECT(renderer), "wrap-width", width - 64 - 20, "wrap-mode", PANGO_WRAP_WORD, NULL); + store = gtk_list_store_new(CATEGORY_VIEW_N_COLS, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_INT); gtk_tree_view_set_model(treeview, GTK_TREE_MODEL(store));