mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 12:52:14 +00:00
background: Fix build
These warnings weren't properly working on Owen's machine, so they went unchecked.
This commit is contained in:
parent
9d69b2a963
commit
d4317ba1e4
@ -246,8 +246,8 @@ meta_background_image_cache_purge (MetaBackgroundImageCache *cache,
|
||||
{
|
||||
MetaBackgroundImage *image;
|
||||
|
||||
g_return_val_if_fail (META_IS_BACKGROUND_IMAGE_CACHE (cache), NULL);
|
||||
g_return_val_if_fail (filename != NULL, NULL);
|
||||
g_return_if_fail (META_IS_BACKGROUND_IMAGE_CACHE (cache));
|
||||
g_return_if_fail (filename != NULL);
|
||||
|
||||
image = g_hash_table_lookup (cache->images, filename);
|
||||
if (image == NULL)
|
||||
|
@ -677,9 +677,9 @@ meta_background_get_texture (MetaBackground *self,
|
||||
cairo_rectangle_int_t monitor_area;
|
||||
CoglTexture *texture1, *texture2;
|
||||
|
||||
g_return_if_fail (META_IS_BACKGROUND (self));
|
||||
g_return_val_if_fail (META_IS_BACKGROUND (self), NULL);
|
||||
priv = self->priv;
|
||||
g_return_if_fail (monitor_index <= 0 && monitor_index < priv->n_monitors);
|
||||
g_return_val_if_fail (monitor_index <= 0 && monitor_index < priv->n_monitors, NULL);
|
||||
|
||||
monitor = &priv->monitors[monitor_index];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user