Distinguish input in Glulxercise
authorP. F. Chimento <philip.chimento@gmail.com>
Wed, 20 Apr 2011 15:22:00 +0000 (17:22 +0200)
committerP. F. Chimento <philip.chimento@gmail.com>
Wed, 20 Apr 2011 15:22:00 +0000 (17:22 +0200)
Make the input style blue in the Glulxercise tester

tests/glulxercise.c

index 3f3b3933bcdef15ca33a4c0ee6e41cf7781fac51..fb7c879157f394265970cf2fc292f7bfe6ead63d 100644 (file)
@@ -95,6 +95,8 @@ main(int argc, char *argv[])
        w->interp = chimara_if_new();
        gtk_widget_set_size_request(w->interp, 500, 600);
        gtk_box_pack_end_defaults(GTK_BOX(vbox), w->interp);
+       chimara_glk_set_css_from_string(CHIMARA_GLK(w->interp),
+               "buffer { font-size: 12; } buffer.input { color: #00a; font-style: italic; }");
        gtk_builder_connect_signals(builder, w);
        g_signal_connect(w->interp, "started", G_CALLBACK(on_interp_started), w);
        g_signal_connect(w->interp, "stopped", G_CALLBACK(on_interp_stopped), w);