Label.set_selectable(True) causes all text being selected on show()
Steps to reproduce
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
class TestWindow(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self, title="TestApp")
self.set_border_width(10)
box = Gtk.Box()
label = Gtk.Label(label='test')
label.set_selectable(True)
box.add(label)
self.add(box)
win = TestWindow()
win.connect("destroy", Gtk.main_quit)
win.show_all()
Gtk.main()
Current behavior
All text withing label is selected on window show
Expected outcome
text is not selected
Version information
- GTK: 3.24.10
- Reproduced on Debian 10 and Windows 7
Edited by Daniel Boles