mirror of
https://github.com/elementary/gala.git
synced 2025-01-07 10:40:17 +03:00
Added a fallback if no wallpaper is set
This commit is contained in:
parent
2f048ced92
commit
a8cce5a46b
@ -28,7 +28,7 @@ namespace Gala
|
||||
|
||||
bool animating; // delay closing the popup
|
||||
|
||||
Gdk.Pixbuf background_pix;
|
||||
Gdk.Pixbuf? background_pix;
|
||||
Clutter.CairoTexture workspace_thumb;
|
||||
Clutter.CairoTexture current_workspace;
|
||||
|
||||
@ -165,7 +165,10 @@ namespace Gala
|
||||
{
|
||||
Granite.Drawing.Utilities.cairo_rounded_rectangle (cr, 0, 0,
|
||||
workspace_thumb.width, workspace_thumb.height, 5);
|
||||
Gdk.cairo_set_source_pixbuf (cr, background_pix, 0, 0);
|
||||
if (background_pix != null)
|
||||
Gdk.cairo_set_source_pixbuf (cr, background_pix, 0, 0);
|
||||
else
|
||||
cr.set_source_rgb (0, 0, 0);
|
||||
cr.fill_preserve ();
|
||||
|
||||
cr.set_line_width (1);
|
||||
|
Loading…
Reference in New Issue
Block a user