diff options
author | Martin Wimpress <[email protected]> | 2017-01-18 14:39:59 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2017-01-18 14:39:59 +0000 |
commit | 00b0f944837025b61bdffd893d4614ed1d5e7dde (patch) | |
tree | 41a3450d67f77f98b4b70392eec923ea54013cc0 /savers/floaters.c | |
parent | 2197434c213600c42b264602c4331eac7761db11 (diff) | |
parent | 5d4416aa5853de486e62ca97207ee1da4b35b199 (diff) | |
download | mate-screensaver-00b0f944837025b61bdffd893d4614ed1d5e7dde.tar.bz2 mate-screensaver-00b0f944837025b61bdffd893d4614ed1d5e7dde.tar.xz |
Merge pull request #110 from XRevan86/master
Avoid deprecated gdk_window_set_background functions
Diffstat (limited to 'savers/floaters.c')
-rw-r--r-- | savers/floaters.c | 5 |
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), |