Switch OK-Cancel order for the preference dialog

This commit is contained in:
Pan7 2017-04-22 21:32:38 +02:00
parent cbb3fc5f03
commit ecf10f473a

View file

@ -1577,18 +1577,18 @@ void PrefsDlg::BuildDialog(){
gtk_box_pack_end( GTK_BOX( mainvbox ), hbox, FALSE, TRUE, 0 ); gtk_box_pack_end( GTK_BOX( mainvbox ), hbox, FALSE, TRUE, 0 );
gtk_widget_show( hbox ); gtk_widget_show( hbox );
button = gtk_button_new_with_label( _( "OK" ) );
gtk_box_pack_end( GTK_BOX( hbox ), button, FALSE, FALSE, 0 );
gtk_widget_set_size_request( button, 60, -1 );
gtk_widget_show( button );
AddModalButton( button, IDOK );
button = gtk_button_new_with_label( _( "Cancel" ) ); button = gtk_button_new_with_label( _( "Cancel" ) );
gtk_box_pack_end( GTK_BOX( hbox ), button, FALSE, FALSE, 0 ); gtk_box_pack_end( GTK_BOX( hbox ), button, FALSE, FALSE, 0 );
gtk_widget_set_size_request( button, 60, -1 ); gtk_widget_set_size_request( button, 60, -1 );
gtk_widget_show( button ); gtk_widget_show( button );
AddModalButton( button, IDCANCEL ); AddModalButton( button, IDCANCEL );
button = gtk_button_new_with_label( _( "OK" ) );
gtk_box_pack_end( GTK_BOX( hbox ), button, FALSE, FALSE, 0 );
gtk_widget_set_size_request( button, 60, -1 );
gtk_widget_show( button );
AddModalButton( button, IDOK );
button = gtk_button_new_with_label( _( "Clean" ) ); button = gtk_button_new_with_label( _( "Clean" ) );
g_signal_connect( G_OBJECT( button ), "clicked", G_CALLBACK( OnButtonClean ), this ); g_signal_connect( G_OBJECT( button ), "clicked", G_CALLBACK( OnButtonClean ), this );
gtk_box_pack_start( GTK_BOX( hbox ), button, FALSE, FALSE, 0 ); gtk_box_pack_start( GTK_BOX( hbox ), button, FALSE, FALSE, 0 );