From 4aa39a73041f2952ffd1918c9b68a7cda1028c6e Mon Sep 17 00:00:00 2001 From: Andrea Cimitan Date: Thu, 29 Jul 2010 13:40:02 +0200 Subject: check if widget is really a widget before getting its style (from dbarth) --- src/indicator-messages.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/indicator-messages.c b/src/indicator-messages.c index 550f1fd..d1133ea 100644 --- a/src/indicator-messages.c +++ b/src/indicator-messages.c @@ -314,6 +314,8 @@ numbers_draw_cb (GtkWidget *widget, GdkEventExpose *event, gpointer data) PangoLayout * layout; gint font_size = RIGHT_LABEL_FONT_SIZE; + if (!GTK_IS_WIDGET (widget)) return; + /* get style */ style = gtk_widget_get_style (widget); -- cgit v1.2.3