Commit d8da8dd4 authored by MOROHOSHI Akihiko's avatar MOROHOSHI Akihiko Committed by Matthias Clasen
Browse files

Improve dialog handling in gtk-builder-convert

Make gtk-builder-convert handle response ids in GtkFileChooserDialog
correctly. (#557629)
parent 8066cc15
......@@ -42,10 +42,10 @@ import sys
from xml.dom import minidom, Node
WINDOWS = ['GtkWindow',
DIALOGS = ['GtkDialog',
WINDOWS = ['GtkWindow'] + DIALOGS
# The subprocess is only available in Python 2.4+
......@@ -499,7 +499,7 @@ class GtkBuilderConverter(object):
if (node.tagName == 'object' and
node.getAttribute('class') == 'GtkDialog'):
node.getAttribute('class') in DIALOGS):
dialog = node
node = node.parentNode
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment