From: Sebastian Harl Date: Fri, 21 Oct 2011 05:14:57 +0000 (+0200) Subject: tpdfview: Changed background color to black. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4928e672ac1b46e23e1a522bbebe969783c55153;p=tpdfview.git tpdfview: Changed background color to black. --- diff --git a/src/tpdfview.c b/src/tpdfview.c index 45cdcf3..8c55600 100644 --- a/src/tpdfview.c +++ b/src/tpdfview.c @@ -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();