Fix double double-click on titlebar in later GTK3

This commit is contained in:
Stephen Boddy 2015-11-29 01:35:05 +01:00
parent fbb70b2bc6
commit 47642be133
1 changed files with 2 additions and 0 deletions

View File

@ -73,6 +73,8 @@ class EditableLabel(Gtk.EventBox):
if event.button != 1:
return False
if event.type == Gdk.EventType._2BUTTON_PRESS:
if self._entry:
return False
self.remove (self._label)
self._entry = Gtk.Entry ()
self._entry.set_text (self._label.get_text ())