On Sun, 15 Jan 2017 at 00:32:15 +0000, Simon McVittie wrote:
> From f70c4dcc86afdc26f8e60c2a6c9d2829717db81e Mon Sep 17 00:00:00 2001
> From: Simon McVittie <s...@debian.org>
> Date: Sun, 15 Jan 2017 00:23:11 +0000
> Subject: [PATCH 13/14] gtk2_ui: Reduce deprecation spam by using named
>  constructors

This one is wrong: the LinkButton parts are right, the MessageDialog parts
crash. Please replace with the attached.

Also available as the "gtk" branch in:

    ssh://git.debian.org/git/users/smcv/reportbug.git

Regards,
    S
>From db1cb6fb298dce64a7a95b8fa7f3d19992a2787a Mon Sep 17 00:00:00 2001
From: Simon McVittie <s...@debian.org>
Date: Sun, 15 Jan 2017 00:23:11 +0000
Subject: [PATCH 13/16] gtk2_ui: Reduce deprecation spam by using a named
 constructor

---
 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 6f7c793..7537c53 100644
--- a/reportbug/ui/gtk2_ui.py
+++ b/reportbug/ui/gtk2_ui.py
@@ -716,8 +716,8 @@ This wizard will guide you through the bug reporting process step by step.
         label.set_justify(Gtk.Justification.FILL)
         vbox.pack_start(label, False, True, 0)
 
-        link = Gtk.LinkButton("http://alioth.debian.org/projects/reportbug";,
-                              "Homepage of reportbug project")
+        link = Gtk.LinkButton.new_with_label("http://alioth.debian.org/projects/reportbug";,
+                                             "Homepage of reportbug project")
         vbox.pack_start(link, False, True, 0)
         return vbox
 
-- 
2.11.0

Reply via email to