GNOME Bugzilla – Bug 775657
TypeError: Gtk.Widget.hide_on_delete() takes exactly 1 argument (3 given)
Last modified: 2016-12-06 09:45:21 UTC
This happens when closing the "Download Movie Subtitles" dialog via [x] button. As a side effect, opening the dialog the second time gives an empty dialog, and crashes on click.
Created attachment 341424 [details] [review] opensubtitles: Call gtk_widget_hide_on_delete natively rather than via python. gtk_widget_hide_on_delete (widget) is not a callback function. Using it as a callback function to "widget::delete-event" signal ( which takes 3 args for callback ) in C code works, though this is not correct. Python checks for argument count of callbacks, and so this hack doesn't work for python code. So, we move it UI file to trigger native callback.
That looks good, thanks. Pushed with a tweak to the commit message — please don’t end the summary line with a full stop.
(In reply to Philip Withnall from comment #2) > That looks good, thanks. Pushed with a tweak to the commit message — please > don’t end the summary line with a full stop. And put what it actually does in the subject line. This is something that we're supposed to be able to use in the NEWS file, which I clearly can't do in this case.