Leonardo, I would leave the generated code as it is. In your callbacks you can get the toplevel widget (i.e. the dialog) from the Object parameter with functions in Gtk.Widget, like Get_Toplevel, Get_Ancestor or Get_Parent. Manuel