mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-27 07:43:24 +00:00
gui/polgengui.py: Use stop_emission_by_name instead of emit_stop_by_name
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 commit is contained in:
parent
df135b07a7
commit
bb6b4c661b
@ -674,7 +674,7 @@ class childWindow:
|
|||||||
|
|
||||||
def on_name_entry_changed(self, entry, text, size, position):
|
def on_name_entry_changed(self, entry, text, size, position):
|
||||||
if text.find(" ") >= 0:
|
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):
|
def on_focus_out_event(self, entry, third):
|
||||||
name = entry.get_text()
|
name = entry.get_text()
|
||||||
|
Loading…
Reference in New Issue
Block a user