[GTK] Fix incorrect cast