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',
'GtkDialog',
DIALOGS = ['GtkDialog',
'GtkFileChooserDialog',
'GtkMessageDialog']
WINDOWS = ['GtkWindow'] + DIALOGS
# The subprocess is only available in Python 2.4+
try:
......@@ -499,7 +499,7 @@ class GtkBuilderConverter(object):
return
if (node.tagName == 'object' and
node.getAttribute('class') == 'GtkDialog'):
node.getAttribute('class') in DIALOGS):
dialog = node
break
node = node.parentNode
......
Markdown is supported
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