summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-08-13 22:07:29 +0300
committermonsta <[email protected]>2016-08-13 22:31:49 +0300
commit73acbeee928ae485fb07513c03d9c431cf08f05c (patch)
tree646f6c9ffeb1cff0bcd377da86288431c8efe699
parentf5df4dcb173d9b0fa183c50e9fdd6730c81eb9cf (diff)
downloadmate-applets-73acbeee928ae485fb07513c03d9c431cf08f05c.tar.bz2
mate-applets-73acbeee928ae485fb07513c03d9c431cf08f05c.tar.xz
accessx-status: fix possible crash when updating layout
-rw-r--r--accessx-status/applet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accessx-status/applet.c b/accessx-status/applet.c
index 65d1a74b..3ef16a57 100644
--- a/accessx-status/applet.c
+++ b/accessx-status/applet.c
@@ -698,7 +698,7 @@ static void accessx_status_applet_update(AccessxStatusApplet* sapplet, AccessxSt
g_object_unref(pixbuf);
}
- if (notify_type & ACCESSX_STATUS_MOUSEKEYS)
+ if ((notify_type & ACCESSX_STATUS_MOUSEKEYS) && (event != NULL))
{
GdkPixbuf* pixbuf = accessx_status_applet_mousekeys_image(sapplet, &event->state);
gtk_image_set_from_pixbuf(GTK_IMAGE(sapplet->mousefoo), pixbuf);