GNOME Bugzilla – Bug 618889
[PATCH] reset sys.argv after calling Gtk.init_check in the overrides
Last modified: 2010-05-19 20:13:07 UTC
If we don't reset sys.argv to the argv returned by Gtk.init_check, applications which check the command like error out when they encounter a switch which is meant to be consumed by the gtk init function.
Created attachment 161235 [details] [review] [PATCH] reset sys.argv to the return value of Gtk.init_check * applications which check command line arguments will error out if it encounters a GTK command line switch such as --g-fatal-warnings. * The Gtk.init* API reads these switches and returns a new argv with the GTK switches stripped out * In C argv is modified in place but in Python we must set sys.argv to the new modified argument list --- gi/overrides/Gtk.py | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
Review of attachment 161235 [details] [review]: r+ if that's what the static bindings where doing.
pushed