[Reportbug-commits] [reportbug] 09/22: gtk2_ui: use properties, which replace widget flags

Sandro Tosi morph at moszumanska.debian.org
Thu Dec 15 00:43:57 UTC 2016


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

morph pushed a commit to branch master
in repository reportbug.

commit 928c84c8ef89580f8d6cf6c1bbd31dc89fd00fa8
Author: Simon McVittie <smcv at debian.org>
Date:   Wed Dec 14 15:13:30 2016 +0000

    gtk2_ui: use properties, which replace widget flags
---
 reportbug/ui/gtk2_ui.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/reportbug/ui/gtk2_ui.py b/reportbug/ui/gtk2_ui.py
index d857d97..f4f11b6 100644
--- a/reportbug/ui/gtk2_ui.py
+++ b/reportbug/ui/gtk2_ui.py
@@ -1253,7 +1253,8 @@ class SelectOptionsPage(Page):
 
     def setup_focus(self):
         if self.default:
-            self.default.set_flags(gtk.CAN_DEFAULT | gtk.HAS_DEFAULT)
+            self.default.props.can_default = True
+            self.default.props.has_default = True
             self.default.grab_default()
             self.default.grab_focus()
 

-- 
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