summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2009-12-23 19:56:21 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2009-12-23 19:56:21 +0100
commitd7c8c0381462d6f565d0c9eedfd02f61696a2fad (patch)
tree28b0ca07bc2b59e20e5d3289e918b619e8a0feda
parent5b8bd040249eea507f2139eec659067ba3e17a79 (diff)
Set bg color of the image layout to black.
-rw-r--r--walls.ui1
-rw-r--r--window_main.c5
2 files changed, 5 insertions, 1 deletions
diff --git a/walls.ui b/walls.ui
index 67b227e..0a75f8e 100644
--- a/walls.ui
+++ b/walls.ui
@@ -157,7 +157,6 @@
<property name="width_request">100</property>
<property name="height_request">80</property>
<property name="visible">True</property>
- <property name="stock">gtk-missing-image</property>
</object>
</child>
</object>
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);