It is recommended to use GAction et al and GtkBuilder.
Attach a file by drag & drop or click to upload