I should know better than to commit untested code :/
From: Marius Gedminas <marius@gedmin.as>
| ... | ... |
@@ -894,10 +894,10 @@ class DotWidget(gtk.DrawingArea): |
| 894 | 894 |
self.set_xdotcode(xdotcode) |
| 895 | 895 |
except GraphParseError, e: |
| 896 | 896 |
msg = "Could not parse %s, is it a valid dot file?" % filename |
| 897 |
- error_dlg = gtk.MessageDialog(title="Dot Viewer", |
|
| 898 |
- type=gtk.MESSAGE_ERROR, |
|
| 897 |
+ error_dlg = gtk.MessageDialog(type=gtk.MESSAGE_ERROR, |
|
| 899 | 898 |
message_format=msg, |
| 900 | 899 |
buttons=gtk.BUTTONS_OK) |
| 900 |
+ error_dlg.set_title('Dot Viewer')
|
|
| 901 | 901 |
error_dlg.run() |
| 902 | 902 |
error_dlg.destroy() |
| 903 | 903 |
return False |