diff mbox

gui/polgengui.py: Use stop_emission_by_name instead of emit_stop_by_name

Message ID 20180222175035.22160-1-plautrba@redhat.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Petr Lautrbach Feb. 22, 2018, 5:50 p.m. UTC
Fixes:
/usr/share/system-config-selinux/polgengui.py:679: PyGIDeprecationWarning: Deprecated, please use stop_emission_by_name.
  entry.emit_stop_by_name("insert_text")

Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
---


This is based on the set of patches related to polgengui.py:

https://marc.info/?l=selinux&m=151860211514842&w=2
https://marc.info/?l=selinux&m=151864307629079&w=2
https://marc.info/?l=selinux&m=151864311929090&w=2
https://marc.info/?l=selinux&m=151864316529106&w=2


gui/polgengui.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/gui/polgengui.py b/gui/polgengui.py
index cd73ea6d..1601dbef 100644
--- a/gui/polgengui.py
+++ b/gui/polgengui.py
@@ -674,7 +674,7 @@  class childWindow:
 
     def on_name_entry_changed(self, entry, text, size, position):
         if text.find(" ") >= 0:
-            entry.emit_stop_by_name("insert_text")
+            entry.stop_emission_by_name("insert-text")
 
     def on_focus_out_event(self, entry, third):
         name = entry.get_text()