fix gtk varnames
This commit is contained in:
parent
2318a3b10c
commit
26a6312c6a
|
@ -65,7 +65,8 @@ def is_selection_modified(mark):
|
|||
return False
|
||||
|
||||
def has_focus(widget):
|
||||
return widget.flags() & Gtk.HAS_FOCUS == Gtk.HAS_FOCUS
|
||||
return widget.get_state_flags() & Gtk.StateFlags.FOCUSED == \
|
||||
Gtk.StateFlags.FOCUSED
|
||||
|
||||
class TextViewImage(Gtk.Image):
|
||||
|
||||
|
|
Loading…
Reference in New Issue