After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 596989 - A textview widget is not showed after unmapping and remapping the window
A textview widget is not showed after unmapping and remapping the window
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
2.12.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2009-10-01 13:59 UTC by Bernard Helmstetter
Modified: 2018-04-14 23:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bernard Helmstetter 2009-10-01 13:59:46 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()
Comment 1 Gian Mario Tagliaretti 2009-12-25 20:28:36 UTC
PyGTK doesn't do anything special here, if there is a bug (which I don't think) it's in GTK+ itself.
Comment 2 Matthias Clasen 2018-02-10 05:11:31 UTC
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.
Comment 3 Matthias Clasen 2018-04-14 23:55:11 UTC
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