Discussion:
[PATCH] gui/polgengui.py: Use stop_emission_by_name instead of emit_stop_by_name
Petr Lautrbach
2018-02-22 17:50:35 UTC
Permalink
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 <***@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 --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()
--
2.16.2
Loading...