]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - contrib/prtview/ConfigDialog.cpp
GTK: wrap gtk_widget_set_size_request
[xonotic/netradiant.git] / contrib / prtview / ConfigDialog.cpp
index 64f539c7da33112418f7a8c492d2c8f94aef1e1a..0d3a39206969e99587b03ef97d461365fcc78393 100644 (file)
@@ -398,7 +398,7 @@ void DoConfigDialog(){
        button.show();
        hbox.pack_start( button, FALSE, FALSE, 0 );
        button.connect( "clicked", G_CALLBACK( OnColor2d ), NULL );
        button.show();
        hbox.pack_start( button, FALSE, FALSE, 0 );
        button.connect( "clicked", G_CALLBACK( OnColor2d ), NULL );
-       gtk_widget_set_size_request( button, 60, -1 );
+       button.dimensions(60, -1);
 
        auto aa2check = ui::CheckButton( "Anti-Alias (May not work on some video cards)" );
        aa2check.show();
 
        auto aa2check = ui::CheckButton( "Anti-Alias (May not work on some video cards)" );
        aa2check.show();
@@ -423,7 +423,7 @@ void DoConfigDialog(){
        hbox.pack_end(button, FALSE, FALSE, 0);
        button.connect( "clicked",
                                                G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( IDOK ) );
        hbox.pack_end(button, FALSE, FALSE, 0);
        button.connect( "clicked",
                                                G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( IDOK ) );
-       gtk_widget_set_size_request( button, 60, -1 );
+       button.dimensions(60, -1);
 
        // initialize dialog
        gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( show2check ), portals.show_2d );
 
        // initialize dialog
        gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( show2check ), portals.show_2d );