Code

tpdfview: Changed background color to black.
authorSebastian Harl <sh@tokkee.org>
Fri, 21 Oct 2011 05:14:57 +0000 (07:14 +0200)
committerSebastian Harl <sh@tokkee.org>
Fri, 21 Oct 2011 05:14:57 +0000 (07:14 +0200)
src/tpdfview.c

index 45cdcf3ebb6c4149da9616499672218411a66523..8c556004540d712a2638292f35bce77e4056d684 100644 (file)
@@ -159,6 +159,8 @@ main(int argc, char **argv)
        GtkWidget *win   = NULL;
        GtkWidget *tpdfv = NULL;
 
+       GdkColor bg_color;
+
        gtk_init(&argc, &argv);
 
        while (42) {
@@ -199,6 +201,10 @@ main(int argc, char **argv)
        g_signal_connect(G_OBJECT(win), "key-press-event",
                        G_CALLBACK(key_press), tpdfv);
 
+       /* TODO: use resource file */
+       gdk_color_parse("#000000", &bg_color);
+       gtk_widget_modify_bg(tpdfv, GTK_STATE_NORMAL, &bg_color);
+
        gtk_widget_show_all(win);
 
        gtk_main();