diff options
author | monsta <[email protected]> | 2016-01-04 19:54:34 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-01-04 19:54:34 +0300 |
commit | 67b6012f3111afb3d90a5e9bb60bc0f3e0e6c520 (patch) | |
tree | 8c2f4f58db4ac502f4e0ff792c3ddff052a4d69d | |
parent | aaa96763f657b988aaf03233fc1bbb725752a719 (diff) | |
download | mate-panel-67b6012f3111afb3d90a5e9bb60bc0f3e0e6c520.tar.bz2 mate-panel-67b6012f3111afb3d90a5e9bb60bc0f3e0e6c520.tar.xz |
background: explicitly check for CAIRO_STATUS_SUCCESS return value
-rw-r--r-- | mate-panel/panel-background.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mate-panel/panel-background.c b/mate-panel/panel-background.c index 29e963ae..1dce2f8b 100644 --- a/mate-panel/panel-background.c +++ b/mate-panel/panel-background.c @@ -1328,7 +1328,7 @@ panel_background_make_string (PanelBackground *background, #endif #if GTK_CHECK_VERSION (3, 0, 0) - if (cairo_pattern_get_surface (background->composited_pattern, &surface)) + if (cairo_pattern_get_surface (background->composited_pattern, &surface) != CAIRO_STATUS_SUCCESS) return NULL; if (cairo_surface_get_type (surface) != CAIRO_SURFACE_TYPE_XLIB) |