Fix a regression that causes a segfault in GTK+ 3.8
Merge pull request #168 from kyoushuu/segfault-regression

Fix a regression that causes a segfault in GTK+ 3.8