From: Thomas Debesse Date: Mon, 11 Feb 2019 23:24:25 +0000 (+0100) Subject: Garux: more ui:: modernization X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ca4a8002f895c3474b3a5087ff027c31dadc712f;p=xonotic%2Fnetradiant.git Garux: more ui:: modernization --- diff --git a/radiant/patchmanip.cpp b/radiant/patchmanip.cpp index 644e122a..2fbc322c 100644 --- a/radiant/patchmanip.cpp +++ b/radiant/patchmanip.cpp @@ -1009,10 +1009,10 @@ void DoPatchDeformDlg(){ gtk_window_add_accel_group( window, accel ); { - GtkHBox* hbox = create_dialog_hbox( 4, 4 ); + auto hbox = create_dialog_hbox( 4, 4 ); gtk_container_add( GTK_CONTAINER( window ), GTK_WIDGET( hbox ) ); { - GtkTable* table = create_dialog_table( 2, 2, 4, 4 ); + auto table = create_dialog_table( 2, 2, 4, 4 ); gtk_box_pack_start( GTK_BOX( hbox ), GTK_WIDGET( table ), TRUE, TRUE, 0 ); { GtkLabel* label = GTK_LABEL( gtk_label_new( "Max deform:" ) ); @@ -1035,7 +1035,7 @@ void DoPatchDeformDlg(){ } { auto vbox = create_dialog_vbox( 4 ); - gtk_box_pack_start( GTK_BOX( hbox ), GTK_WIDGET( vbox ), TRUE, TRUE, 0 ); + hbox.pack_start( vbox, FALSE, FALSE, 0 ); { auto button = create_dialog_button( "OK", G_CALLBACK( dialog_button_ok ), &dialog ); vbox.pack_start( button, FALSE, FALSE, 0 );