[vte] widget: Remove extraneous unmap



commit 5ccac1ed2876ad85d7845a85c586b607790d75c1
Author: Christian Persch <chpe src gnome org>
Date:   Fri May 1 23:08:42 2020 +0200

    widget: Remove extraneous unmap
    
    GtkWidget::unrealize already unmaps the widget if mapped, so
    there is no need to do this manually again.

 src/vte.cc | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 5a08b776..c7a75db9 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -7883,12 +7883,6 @@ Terminal::widget_unrealize()
        }
        m_fontdirty = true;
 
-       /* Unmap the widget if it hasn't been already. */
-        // FIXMEchpe this can't happen
-       if (gtk_widget_get_mapped(m_widget)) {
-               gtk_widget_unmap(m_widget);
-       }
-
         /* Remove the cursor blink timeout function. */
        remove_cursor_timeout();
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]