diff options
author | Alexander Larsson <alexl@redhat.com> | 2001-02-20 16:16:22 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2001-02-20 16:16:22 +0000 |
commit | 699c933422555fc73d55d10c2163bc3b4d2c8d7d (patch) | |
tree | daa79e16667fb0c05d78fd8ebe422b1b37ff24df /tests | |
parent | 5efcd1a640bda57935e0c4ad1331ed9911f94309 (diff) | |
download | gdk-pixbuf-699c933422555fc73d55d10c2163bc3b4d2c8d7d.tar.gz |
Add a "markup" property.
2001-02-20 Alexander Larsson <alexl@redhat.com>
* gtk/gtkcellrenderertext.[ch]:
Add a "markup" property.
* gtk/treestoretest.c:
Use the markup property, remove some leftover stuff from
GtkTreeModelMapping.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/treestoretest.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/treestoretest.c b/tests/treestoretest.c index 8244bb493..1b2222f2b 100644 --- a/tests/treestoretest.c +++ b/tests/treestoretest.c @@ -21,7 +21,7 @@ node_set (GtkTreeIter *iter) gint n; gchar *str; - str = g_strdup_printf ("Row (%d)", i++); + str = g_strdup_printf ("Row (<span color=\"red\">%d</span>)", i++); gtk_tree_store_set (base_model, iter, 0, str, -1); g_free (str); @@ -236,9 +236,6 @@ make_window (gint view_type) case 1: gtk_window_set_title (GTK_WINDOW (window), "Sorted list"); break; - case 2: - gtk_window_set_title (GTK_WINDOW (window), "Uppercase flipped list"); - break; } vbox = gtk_vbox_new (FALSE, 8); @@ -321,7 +318,7 @@ make_window (gint view_type) /* The selected column */ cell = gtk_cell_renderer_text_new (); - column = gtk_tree_view_column_new_with_attributes ("Node ID", cell, "text", 0, NULL); + column = gtk_tree_view_column_new_with_attributes ("Node ID", cell, "markup", 0, NULL); gtk_tree_view_append_column (GTK_TREE_VIEW (tree_view), column); cell = gtk_cell_renderer_text_new (); @@ -352,7 +349,6 @@ main (int argc, char *argv[]) /* FIXME: reverse this */ make_window (0); make_window (1); - make_window (2); gtk_main (); |