[gtk+] Improve dialog handling in gtk-builder-convert
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+] Improve dialog handling in gtk-builder-convert
- Date: Sat, 11 Apr 2009 01:35:25 -0400 (EDT)
commit d8da8dd4ffede861d53af88fa5034aab6d7d2beb
Author: MOROHOSHI Akihiko <moro remus dti ne jp>
Date: Sat Apr 11 01:34:22 2009 -0400
Improve dialog handling in gtk-builder-convert
Make gtk-builder-convert handle response ids in GtkFileChooserDialog
correctly. (#557629)
---
gtk/gtk-builder-convert | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/gtk/gtk-builder-convert b/gtk/gtk-builder-convert
index 6406b10..c6b3657 100755
--- a/gtk/gtk-builder-convert
+++ b/gtk/gtk-builder-convert
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]