Make gtk-builder-convert handle response ids in GtkFileChooserDialog
correctly. (#557629)
from xml.dom import minidom, Node
-WINDOWS = ['GtkWindow',
- 'GtkDialog',
+DIALOGS = ['GtkDialog',
'GtkFileChooserDialog',
'GtkMessageDialog']
+WINDOWS = ['GtkWindow'] + DIALOGS
# The subprocess is only available in Python 2.4+
try:
return
if (node.tagName == 'object' and
- node.getAttribute('class') == 'GtkDialog'):
+ node.getAttribute('class') in DIALOGS):
dialog = node
break
node = node.parentNode