fix gtk varnames

This commit is contained in:
Denis Fomin 2013-02-24 12:39:51 +04:00
parent 2318a3b10c
commit 26a6312c6a
1 changed files with 2 additions and 1 deletions

View File

@ -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):