[Reportbug-commits] [reportbug] 14/31: gtk2_ui: Avoid deprecated Gtk.Expander(str) constructor not exposed by gi

Sandro Tosi morph at moszumanska.debian.org
Mon Jan 16 01:36:57 UTC 2017


This is an automated email from the git hooks/post-receive script.

morph pushed a commit to branch master
in repository reportbug.

commit cb5c90e8c172cbd642566a03be6b8f07506ad6aa
Author: James Clarke <jrtc27 at debian.org>
Date:   Mon Jan 9 18:48:43 2017 +0000

    gtk2_ui: Avoid deprecated Gtk.Expander(str) constructor not exposed by gi
---
 reportbug/ui/gtk2_ui.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/reportbug/ui/gtk2_ui.py b/reportbug/ui/gtk2_ui.py
index 2829cf0..e9099c2 100644
--- a/reportbug/ui/gtk2_ui.py
+++ b/reportbug/ui/gtk2_ui.py
@@ -191,7 +191,7 @@ class ExceptionDialog(CustomDialog):
 
     def setup_dialog(self, vbox, tb):
         # The traceback
-        expander = Gtk.Expander("More details")
+        expander = Gtk.Expander.new_with_mnemonic("More details")
         vbox.pack_start(expander, True, True, 0)
 
         view = Gtk.TextView()
@@ -1170,7 +1170,7 @@ class EditorPage(Page):
         scrolled = create_scrollable(self.view)
         vbox.pack_start(scrolled, True, True, 0)
 
-        expander = Gtk.Expander("Other system information")
+        expander = Gtk.Expander.new_with_mnemonic("Other system information")
         view = Gtk.TextView()
         view.set_editable(False)
         self.others_buffer = view.get_buffer()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reportbug/reportbug.git



More information about the Reportbug-commits mailing list