From 1e6c548b5786d6fda97ba3d6d138e4a60a4911cc Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Sat, 20 Feb 2021 01:43:25 +0100 Subject: [PATCH] windows: reword a bit the gtkglext workaround --- radiant/groupdialog.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/radiant/groupdialog.cpp b/radiant/groupdialog.cpp index dbad5b89..d96bc7c2 100644 --- a/radiant/groupdialog.cpp +++ b/radiant/groupdialog.cpp @@ -185,7 +185,10 @@ void GroupDialog_setPage( ui::Widget page ){ } #ifdef WORKAROUND_WINDOWS_GTK2_GLWIDGET -void GroupDialog_cycle(); +void GroupDialog_cycle(){ + g_current_page = ( g_current_page + 1 ) % g_pages.size(); + gtk_notebook_set_current_page( GTK_NOTEBOOK( g_GroupDlg.m_pNotebook ), gint( g_current_page ) ); +} #endif // WORKAROUND_WINDOWS_GTK2_GLWIDGET void GroupDialog_showPage( ui::Widget page ){ @@ -213,11 +216,6 @@ void GroupDialog_showPage( ui::Widget page ){ workaround_macos_show_hide(); } -void GroupDialog_cycle(){ - g_current_page = ( g_current_page + 1 ) % g_pages.size(); - gtk_notebook_set_current_page( GTK_NOTEBOOK( g_GroupDlg.m_pNotebook ), gint( g_current_page ) ); -} - void GroupDialog_updatePageTitle( ui::Widget page ){ if ( GroupDialog_getPage() == page ) { GroupDialog_updatePageTitle( g_GroupDlg.m_window, g_current_page ); -- 2.39.2