Commit a191e5c0 authored by Jonny Lamb's avatar Jonny Lamb

maynard: some style changes

parent 558a409b
......@@ -569,16 +569,17 @@ background_create (struct desktop *desktop)
struct element *background;
const gchar *filename;
GdkPixbuf *unscaled_background;
const gchar *xpm_data[] = {"1 1 1 1", "_ c SteelBlue", "_"};
background = malloc (sizeof *background);
memset (background, 0, sizeof *background);
filename = g_getenv ("MAYNARD_BACKGROUND");
if (filename && *filename)
if (filename && filename[0] != '\0')
unscaled_background = gdk_pixbuf_new_from_file (filename, NULL);
else
unscaled_background = gdk_pixbuf_new_from_xpm_data
((const char*[]){"1 1 1 1", "_ c SteelBlue", "_"});
unscaled_background = gdk_pixbuf_new_from_xpm_data (xpm_data);
if (!unscaled_background)
{
g_message ("Could not load background (%s).",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment