From 721a8d04fe65a7555ba646a92f3e0978a53546b5 Mon Sep 17 00:00:00 2001 From: Romain Failliot Date: Mon, 4 Jul 2016 21:56:17 -0400 Subject: [PATCH] Fix ComboBox error in the FileChooserDialog. --- src/usr/bin/diffuse | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/usr/bin/diffuse b/src/usr/bin/diffuse index 478ad14..5d31511 100755 --- a/src/usr/bin/diffuse +++ b/src/usr/bin/diffuse @@ -717,7 +717,7 @@ def norm_encoding(e): class EncodingMenu(gtk.HBox): def __init__(self, prefs, autodetect=False): gtk.HBox.__init__(self) - self.combobox = combobox = gtk.combo_box_new_text() + self.combobox = combobox = gtk.ComboBoxText.new() self.encodings = prefs.getEncodings()[:] for e in self.encodings: combobox.append_text(e) @@ -6741,6 +6741,7 @@ class FileChooserDialog(gtk.FileChooserDialog): gtk.FileChooserDialog.__init__(self, title, parent, action, (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, accept, gtk.RESPONSE_OK)) self.prefs = prefs hbox = gtk.HBox() + hbox.set_border_width(5) label = gtk.Label(_('Encoding: ')) hbox.pack_start(label, False, False, 0) label.show()