summaryrefslogtreecommitdiff
path: root/mate-window-picker-applet/task-title.c
diff options
context:
space:
mode:
authorDaniel Schürmann <[email protected]>2014-06-09 19:20:23 +0200
committerDaniel Schürmann <[email protected]>2014-06-09 19:20:23 +0200
commit551983e0fa42ee207f136e64ca4a8dea545bb57a (patch)
tree483aa0b8f2cebcda54481055d2aadce8b6ee3313 /mate-window-picker-applet/task-title.c
parente036725df40fb3e47615b20c74b9e836906a2a74 (diff)
downloadmate-netbook-551983e0fa42ee207f136e64ca4a8dea545bb57a.tar.bz2
mate-netbook-551983e0fa42ee207f136e64ca4a8dea545bb57a.tar.xz
Check for allocation = NULL. This fixes a segfault during applet load
Diffstat (limited to 'mate-window-picker-applet/task-title.c')
-rw-r--r--mate-window-picker-applet/task-title.c2
1 files changed, 1 insertions, 1 deletions
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,