summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 483942f)
raw | patch | inline | side by side (parent: 483942f)
author | mderezynski <mderezynski@users.sourceforge.net> | |
Mon, 22 May 2006 08:38:28 +0000 (08:38 +0000) | ||
committer | mderezynski <mderezynski@users.sourceforge.net> | |
Mon, 22 May 2006 08:38:28 +0000 (08:38 +0000) |
src/widgets/toolbox.cpp | patch | blob | history |
index 96e71fb3447c0e3b73caeea1cf132bada876ab92..80486120a50d8b747f653a0005fc8ec0da0eb188 100644 (file)
--- a/src/widgets/toolbox.cpp
+++ b/src/widgets/toolbox.cpp
GtkTreeIter *iter,
gpointer data)
{
-#if 0
char *family,
*family_escaped,
*sample_escaped;
const char *sample;
-#endif
- char *family;
- gtk_tree_model_get (tree_model, iter, 0, &family, -1);
- const char *sample = prefs_get_string_attribute ("tools.text", "font_sample");
- char *escaped = g_markup_escape_text (sample, -1);
- g_object_set (G_OBJECT (cell), "text", escaped, "family", family, NULL);
- free (escaped);
- free (family);
-
-#if 0
sample = prefs_get_string_attribute ("tools.text", "font_sample");
family_escaped = g_markup_escape_text (family, -1);
free (family);
free (family_escaped);
free (sample_escaped);
-#endif
}
GtkWidget*
GtkTreeViewColumn *column = gtk_tree_view_column_new ();
gtk_tree_view_column_pack_start (column, cell, FALSE);
gtk_tree_view_column_set_sizing (column, GTK_TREE_VIEW_COLUMN_FIXED);
-// gtk_tree_view_column_set_cell_data_func (column, cell, GtkTreeCellDataFunc (cell_data_func), gpointer(0), NULL);
- gtk_tree_view_column_set_attributes (column, cell, "text", 0, NULL);
- gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), column);
-
- cell = gtk_cell_renderer_text_new ();
- column = gtk_tree_view_column_new ();
- gtk_tree_view_column_pack_start (column, cell, FALSE);
- gtk_tree_view_column_set_sizing (column, GTK_TREE_VIEW_COLUMN_FIXED);
gtk_tree_view_column_set_cell_data_func (column, cell, GtkTreeCellDataFunc (cell_data_func), NULL, NULL);
gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), column);