]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/groupdialog.cpp
Merge commit '71ef2336cbab4cca1d1b228cdb89601f6569c107' into master-merge
[xonotic/netradiant.git] / radiant / groupdialog.cpp
index d96bc7c271bea3be9beae9c5f8974eb08d7bd0d0..b7054e2b54a53e7bb56d4f917ebfafeab3da9f4f 100644 (file)
@@ -59,6 +59,17 @@ void Create( ui::Window parent );
 void Show(){
        // workaround for strange gtk behaviour - modifying the contents of a window while it is not visible causes the window position to change without sending a configure_event
        m_position_tracker.sync( m_window );
+#define GARUX_GTK_WORKAROUND
+#ifndef GARUX_GTK_WORKAROUND
+       /* workaround for gtk 2.24 issue: not displayed glwidget after toggle */
+       GtkWidget* glwidget = GTK_WIDGET( g_object_get_data( G_OBJECT( m_window ), "glwidget" ) );
+       if ( glwidget ){
+               //if ( widget_is_visible( glwidget ) )
+                       //globalOutputStream() << "glwidget have been already visible :0\n"; /* is not hidden aswell, according to this */
+               gtk_widget_hide( glwidget );
+               gtk_widget_show( glwidget );
+       }
+#endif
        m_window.show();
 }
 void Hide(){