diff options
author | Andrea Cimitan <andrea.cimitan@gmail.com> | 2010-07-29 13:40:02 +0200 |
---|---|---|
committer | Andrea Cimitan <andrea.cimitan@gmail.com> | 2010-07-29 13:40:02 +0200 |
commit | 4aa39a73041f2952ffd1918c9b68a7cda1028c6e (patch) | |
tree | 49cbaddd541212319b33c8976b0acb63a0b0fa29 /src | |
parent | c4baebd40e86b2277f87a17df0a9d25d79cac251 (diff) | |
download | ayatana-indicator-messages-4aa39a73041f2952ffd1918c9b68a7cda1028c6e.tar.gz ayatana-indicator-messages-4aa39a73041f2952ffd1918c9b68a7cda1028c6e.tar.bz2 ayatana-indicator-messages-4aa39a73041f2952ffd1918c9b68a7cda1028c6e.zip |
check if widget is really a widget before getting its style (from dbarth)
Diffstat (limited to 'src')
-rw-r--r-- | src/indicator-messages.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |