Skip to content

Commit 2f116c4

Browse files
committed
Attempt 3
1 parent 0e30cf5 commit 2f116c4

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

src/slic3r/GUI/GUI_App.cpp

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)