File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed
Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -2559,6 +2559,11 @@ bool GUI_App::on_init_inner()
25592559 // sidebar().aux_list()->init_auxiliary();
25602560 mainframe->m_project ->init_auxiliary ();
25612561
2562+
2563+ #ifdef __WXGTK3__
2564+ gtk_window_set_titlebar (GTK_WINDOW (mainframe), GTK_WIDGET (mainframe->topbar ()));
2565+ #endif
2566+
25622567// update_mode(); // !!! do that later
25632568 SetTopWindow (mainframe);
25642569
@@ -3372,17 +3377,6 @@ void GUI_App::recreate_GUI(const wxString &msg_name)
33723377 // sidebar().aux_list()->init_auxiliary();
33733378 // mainframe->m_auxiliary->init_auxiliary();
33743379
3375- #ifdef __WXGTK3__
3376- GtkWidget* gtk_topbar = static_cast <GtkWidget*>(mainframe->topbar ()->GetHandle ());
3377- if (gtk_topbar) {
3378- gtk_window_set_titlebar (GTK_WINDOW (mainframe->GetHandle ()), gtk_topbar);
3379- }
3380- #endif
3381-
3382- // #ifdef __WXGTK3__
3383- // gtk_window_set_titlebar(GTK_WINDOW(mainframe), GTK_WIDGET(mainframe->topbar()));
3384- // #endif
3385-
33863380 SetTopWindow (mainframe);
33873381
33883382 dlg.Update (30 , _L (" Rebuild" ) + dots);
You can’t perform that action at this time.
0 commit comments