X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=contrib%2Fprtview%2FLoadPortalFileDialog.cpp;h=890658e14733d2929a1d9c627da74ddfe0aad447;hp=0d095a74ccb738aaa8317b94684b17c7ba593646;hb=a9e5bfdf2a458e89978ee52ebbd3711884b54b29;hpb=e175f55b5cc3a06e68e7af608c17dac548a9a31c diff --git a/contrib/prtview/LoadPortalFileDialog.cpp b/contrib/prtview/LoadPortalFileDialog.cpp index 0d095a74..890658e1 100644 --- a/contrib/prtview/LoadPortalFileDialog.cpp +++ b/contrib/prtview/LoadPortalFileDialog.cpp @@ -113,7 +113,7 @@ int DoLoadPortalFileDialog(){ button.show(); hbox.pack_end(button, FALSE, FALSE, 0); button.connect( "clicked", G_CALLBACK( change_clicked ), entry ); - gtk_widget_set_size_request( button, 60, -1 ); + button.dimensions(60, -1); hbox = ui::HBox( FALSE, 5 ); hbox.show(); @@ -124,14 +124,14 @@ int DoLoadPortalFileDialog(){ hbox.pack_end(button, FALSE, FALSE, 0); button.connect( "clicked", G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( IDCANCEL ) ); - gtk_widget_set_size_request( button, 60, -1 ); + button.dimensions(60, -1); button = ui::Button( "OK" ); button.show(); 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); strcpy( portals.fn, GlobalRadiant().getMapName() ); char* fn = strrchr( portals.fn, '.' );