Mercurial > audlegacy
comparison 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 |
comparison
equal
deleted
inserted
replaced
4154:0784aa980c42 | 4155:ae231a103173 |
---|---|
967 gtk_tree_view_column_set_attributes(column, renderer, "pixbuf", 0, NULL); | 967 gtk_tree_view_column_set_attributes(column, renderer, "pixbuf", 0, NULL); |
968 | 968 |
969 renderer = gtk_cell_renderer_text_new(); | 969 renderer = gtk_cell_renderer_text_new(); |
970 gtk_tree_view_column_pack_start(column, renderer, FALSE); | 970 gtk_tree_view_column_pack_start(column, renderer, FALSE); |
971 gtk_tree_view_column_set_attributes(column, renderer, "text", 1, NULL); | 971 gtk_tree_view_column_set_attributes(column, renderer, "text", 1, NULL); |
972 | |
973 gint width, height; | |
974 gtk_widget_get_size_request(GTK_WIDGET(treeview), &width, &height); | |
975 g_object_set(G_OBJECT(renderer), "wrap-width", width - 64 - 20, "wrap-mode", PANGO_WRAP_WORD, NULL); | |
972 | 976 |
973 store = gtk_list_store_new(CATEGORY_VIEW_N_COLS, | 977 store = gtk_list_store_new(CATEGORY_VIEW_N_COLS, |
974 GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_INT); | 978 GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_INT); |
975 gtk_tree_view_set_model(treeview, GTK_TREE_MODEL(store)); | 979 gtk_tree_view_set_model(treeview, GTK_TREE_MODEL(store)); |
976 | 980 |