Fix double double-click on titlebar in later GTK3
This commit is contained in:
parent
fbb70b2bc6
commit
47642be133
|
@ -73,6 +73,8 @@ class EditableLabel(Gtk.EventBox):
|
||||||
if event.button != 1:
|
if event.button != 1:
|
||||||
return False
|
return False
|
||||||
if event.type == Gdk.EventType._2BUTTON_PRESS:
|
if event.type == Gdk.EventType._2BUTTON_PRESS:
|
||||||
|
if self._entry:
|
||||||
|
return False
|
||||||
self.remove (self._label)
|
self.remove (self._label)
|
||||||
self._entry = Gtk.Entry ()
|
self._entry = Gtk.Entry ()
|
||||||
self._entry.set_text (self._label.get_text ())
|
self._entry.set_text (self._label.get_text ())
|
||||||
|
|
Loading…
Reference in New Issue