summaryrefslogtreecommitdiff
path: root/savers/floaters.c
diff options
context:
space:
mode:
authorAlexei Sorokin <[email protected]>2017-01-15 18:24:34 +0300
committerAlexei Sorokin <[email protected]>2017-01-15 18:24:34 +0300
commit6672c9811a6c6fe76810d2c66c69c4727910d91d (patch)
tree50ce812185cd4a4233e2f5effa717101e2c961c1 /savers/floaters.c
parent2197434c213600c42b264602c4331eac7761db11 (diff)
downloadmate-screensaver-6672c9811a6c6fe76810d2c66c69c4727910d91d.tar.bz2
mate-screensaver-6672c9811a6c6fe76810d2c66c69c4727910d91d.tar.xz
avoid deprecated gdk_window_set_background functions
Which are completely broken in GTK+ 3.22.
Diffstat (limited to 'savers/floaters.c')
-rw-r--r--savers/floaters.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/savers/floaters.c b/savers/floaters.c
index b9291dc..fc83fae 100644
--- a/savers/floaters.c
+++ b/savers/floaters.c
@@ -1050,8 +1050,9 @@ screen_saver_update_state (ScreenSaver *screen_saver,
screen_saver_floater_update_state (screen_saver, floater, time);
- if (gtk_widget_get_realized (screen_saver->drawing_area)
- && (floater->bounds.width > 0) && (floater->bounds.height > 0))
+ if (screen_saver->drawing_area != NULL &&
+ gtk_widget_get_realized (screen_saver->drawing_area) &&
+ (floater->bounds.width > 0) && (floater->bounds.height > 0))
{
gint size;
size = CLAMP ((int) (FLOATER_MAX_SIZE * floater->scale),