From 551983e0fa42ee207f136e64ca4a8dea545bb57a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Mon, 9 Jun 2014 19:20:23 +0200 Subject: Check for allocation = NULL. This fixes a segfault during applet load --- mate-window-picker-applet/task-title.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mate-window-picker-applet/task-title.c') diff --git a/mate-window-picker-applet/task-title.c b/mate-window-picker-applet/task-title.c index 546e331..e81dfd3 100644 --- a/mate-window-picker-applet/task-title.c +++ b/mate-window-picker-applet/task-title.c @@ -407,7 +407,7 @@ on_expose (GtkWidget *eb, GdkEventExpose *event) style = gtk_widget_get_style (eb); state = gtk_widget_get_state (eb); - if (state == GTK_STATE_ACTIVE) + if (state == GTK_STATE_ACTIVE && allocation) gtk_paint_box (style, #if GTK_CHECK_VERSION (3, 0, 0) cr, -- cgit v1.2.1