From d7c8c0381462d6f565d0c9eedfd02f61696a2fad Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Wed, 23 Dec 2009 19:56:21 +0100 Subject: Set bg color of the image layout to black. --- walls.ui | 1 - window_main.c | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/walls.ui b/walls.ui index 67b227e..0a75f8e 100644 --- a/walls.ui +++ b/walls.ui @@ -157,7 +157,6 @@ 100 80 True - gtk-missing-image diff --git a/window_main.c b/window_main.c index e84144f..d7a8bf2 100644 --- a/window_main.c +++ b/window_main.c @@ -236,6 +236,7 @@ int gui_main(int argc, char **argv) { GtkWidget *window_hpane; GtkBuilder *builder ; GError *error = NULL; + GdkColor color; g_thread_init(NULL); @@ -263,7 +264,11 @@ int gui_main(int argc, char **argv) { gtk_icon_view_set_pixbuf_column(thumbview, 0); image = GTK_IMAGE(gtk_builder_get_object(builder, "image")); + layout = GTK_WIDGET(gtk_builder_get_object(builder, "layout")); + if(gdk_color_parse("#000", &color)) + gtk_widget_modify_bg(GTK_WIDGET(layout), GTK_STATE_NORMAL, &color); + window_hpane = GTK_WIDGET(gtk_builder_get_object(builder, "window_hpane")); g_signal_connect(window_hpane, "notify::position", G_CALLBACK(on_window_hpane_resized), window_hpane); -- cgit v1.2.3