GNOME Bugzilla – Bug 596989
A textview widget is not showed after unmapping and remapping the window
Last modified: 2018-04-14 23:55:11 UTC
When running the following script, the textview widget is not shown in the window. Interestingly, the bug disappears if a size is requested for the window. ----- #!/usr/bin/python import gtk class HelloWorldWindow: def __init__(self): self.window = gtk.Window(gtk.WINDOW_TOPLEVEL) # The bug disappears when this line is uncommented. #self.window.set_size_request(200, 200) textview = gtk.TextView() textbuffer = textview.get_buffer() textbuffer.set_text('Hello, World!') self.window.add(textview) self.window.show_all() self.window.unmap() self.window.map() if __name__ == "__main__": window = HelloWorldWindow() gtk.main()
PyGTK doesn't do anything special here, if there is a bug (which I don't think) it's in GTK+ itself.
We're moving to gitlab! As part of this move, we are moving bugs to NEEDINFO if they haven't seen activity in more than a year. If this issue is still important to you and still relevant with GTK+ 3.22 or master, please reopen it and we will migrate it to gitlab.
As announced a while ago, we are migrating to gitlab, and bugs that haven't seen activity in the last year or so will be not be migrated, but closed out in bugzilla. If this bug is still relevant to you, you can open a new issue describing the symptoms and how to reproduce it with gtk 3.22.x or master in gitlab: https://gitlab.gnome.org/GNOME/gtk/issues/new