From: Thomas Debesse Date: Sat, 20 Feb 2021 00:43:25 +0000 (+0100) Subject: windows: reword a bit the gtkglext workaround X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1e6c548b5786d6fda97ba3d6d138e4a60a4911cc;p=xonotic%2Fnetradiant.git windows: reword a bit the gtkglext workaround --- 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 );