-void DoAbout(){
- ModalDialog dialog;
- ModalDialogButton ok_button( dialog, eIDOK );
-
- auto window = MainFrame_getWindow().create_modal_dialog_window("About NetRadiant", dialog );
-
- {
- auto vbox = create_dialog_vbox( 4, 4 );
- window.add(vbox);
-
- {
- auto hbox = create_dialog_hbox( 4 );
- vbox.pack_start( hbox, FALSE, TRUE, 0 );
-
- {
- auto vbox2 = create_dialog_vbox( 4 );
- hbox.pack_start( vbox2, TRUE, FALSE, 0 );
- {
- auto frame = create_dialog_frame( 0, ui::Shadow::IN );
- vbox2.pack_start( frame, FALSE, FALSE, 0 );
- {
- auto image = new_local_image( "logo.png" );
- image.show();
- frame.add(image);
- }
- }
- }
-
- {
- char const *label_text = "NetRadiant " RADIANT_VERSION "\n"
- __DATE__ "\n\n"
- RADIANT_ABOUTMSG "\n\n"
- "This program is free software\n"
- "licensed under the GNU GPL.\n\n"
- "NetRadiant is unsupported, however\n"
- "you may report your problems at\n"
- "https://gitlab.com/xonotic/netradiant/issues";
-
- auto label = ui::Label( label_text );
-
- label.show();
- hbox.pack_start( label, FALSE, FALSE, 0 );
- gtk_misc_set_alignment( GTK_MISC( label ), 1, 0.5 );
- gtk_label_set_justify( label, GTK_JUSTIFY_LEFT );
- }
-
- {
- auto vbox2 = create_dialog_vbox( 4 );
- hbox.pack_start( vbox2, FALSE, TRUE, 0 );
- {
- auto button = create_modal_dialog_button( "OK", ok_button );
- vbox2.pack_start( button, FALSE, FALSE, 0 );
- }
- {
- auto button = create_dialog_button( "Credits", G_CALLBACK( about_button_credits ), 0 );
- vbox2.pack_start( button, FALSE, FALSE, 0 );
- }
- {
- auto button = create_dialog_button( "Changes", G_CALLBACK( about_button_changelog ), 0 );
- vbox2.pack_start( button, FALSE, FALSE, 0 );
- }
- {
- auto button = create_dialog_button( "Issues", G_CALLBACK( about_button_issues ), 0 );
- vbox2.pack_start( button, FALSE, FALSE, 0 );
- }
- }
- }
- {
- auto frame = create_dialog_frame( "OpenGL Properties" );
- vbox.pack_start( frame, FALSE, FALSE, 0 );
- {
- auto table = create_dialog_table( 3, 2, 4, 4, 4 );
- frame.add(table);
- {
- auto label = ui::Label( "Vendor:" );
- label.show();
+void DoAbout()
+{
+ ModalDialog dialog;
+ ModalDialogButton ok_button(dialog, eIDOK);
+
+ auto window = MainFrame_getWindow().create_modal_dialog_window("About NetRadiant", dialog);
+
+ {
+ auto vbox = create_dialog_vbox(4, 4);
+ window.add(vbox);
+
+ {
+ auto hbox = create_dialog_hbox(4);
+ vbox.pack_start(hbox, FALSE, TRUE, 0);
+
+ {
+ auto vbox2 = create_dialog_vbox(4);
+ hbox.pack_start(vbox2, TRUE, FALSE, 0);
+ {
+ auto frame = create_dialog_frame(0, ui::Shadow::IN);
+ vbox2.pack_start(frame, FALSE, FALSE, 0);
+ {
+ auto image = new_local_image("logo.png");
+ image.show();
+ frame.add(image);
+ }
+ }
+ }
+
+ {
+ char const *label_text = "NetRadiant " RADIANT_VERSION "\n"
+ __DATE__ "\n\n"
+ RADIANT_ABOUTMSG "\n\n"
+ "This program is free software\n"
+ "licensed under the GNU GPL.\n\n"
+ "NetRadiant is unsupported, however\n"
+ "you may report your problems at\n"
+ "https://gitlab.com/xonotic/netradiant/issues";
+
+ auto label = ui::Label(label_text);
+
+ label.show();
+ hbox.pack_start(label, FALSE, FALSE, 0);
+ gtk_misc_set_alignment(GTK_MISC(label), 1, 0.5);
+ gtk_label_set_justify(label, GTK_JUSTIFY_LEFT);
+ }
+
+ {
+ auto vbox2 = create_dialog_vbox(4);
+ hbox.pack_start(vbox2, FALSE, TRUE, 0);
+ {
+ auto button = create_modal_dialog_button("OK", ok_button);
+ vbox2.pack_start(button, FALSE, FALSE, 0);
+ }
+ {
+ auto button = create_dialog_button("Credits", G_CALLBACK(about_button_credits), 0);
+ vbox2.pack_start(button, FALSE, FALSE, 0);
+ }
+ {
+ auto button = create_dialog_button("Changes", G_CALLBACK(about_button_changelog), 0);
+ vbox2.pack_start(button, FALSE, FALSE, 0);
+ }
+ {
+ auto button = create_dialog_button("Issues", G_CALLBACK(about_button_issues), 0);
+ vbox2.pack_start(button, FALSE, FALSE, 0);
+ }
+ }
+ }
+ {
+ auto frame = create_dialog_frame("OpenGL Properties");
+ vbox.pack_start(frame, FALSE, FALSE, 0);
+ {
+ auto table = create_dialog_table(3, 2, 4, 4, 4);
+ frame.add(table);
+ {
+ auto label = ui::Label("Vendor:");
+ label.show();