[Reportbug-commits] [reportbug] 18/22: gtk2_ui: use set_state_flags instead of deprecated set_state
Sandro Tosi
morph at moszumanska.debian.org
Thu Dec 15 00:43:59 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 6ae9fa166b12d3ef7660808d18b2f160c720e6d7
Author: Simon McVittie <smcv at debian.org>
Date: Wed Dec 14 16:30:31 2016 +0000
gtk2_ui: use set_state_flags instead of deprecated set_state
---
reportbug/ui/gtk2_ui.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/reportbug/ui/gtk2_ui.py b/reportbug/ui/gtk2_ui.py
index aad0e96..61785bc 100644
--- a/reportbug/ui/gtk2_ui.py
+++ b/reportbug/ui/gtk2_ui.py
@@ -425,7 +425,7 @@ class BugPage(Gtk.EventBox, threading.Thread):
view.set_editable(False)
view.get_buffer().set_text(body)
if odd:
- view.set_state(gtk.STATE_PRELIGHT)
+ view.set_state_flags(Gtk.StateFlags.PRELIGHT, False)
views.pack_start(view, False, True, 0)
odd = not odd
scrolled = create_scrollable(views, True)
--
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